Module4QuizLabWth230

Module4QuizLabWth230

University

•

40 Qs

quiz-placeholder

Similar activities

Module 1 Beginning With Science

Module 1 Beginning With Science

7th Grade - University

•

38 Qs

Apl1k0m F1N4L

Apl1k0m F1N4L

University

•

35 Qs

UH ekosistem  X

UH ekosistem X

10th Grade - University

•

35 Qs

Routt WWII Tech: Tanks pt 1

Routt WWII Tech: Tanks pt 1

9th Grade - University

•

36 Qs

Ecology Test Review

Ecology Test Review

7th Grade - University

•

45 Qs

Water and Soil Pollution

Water and Soil Pollution

University

•

45 Qs

Quiz 1 konsep mol dan penyetaraan reaksi

Quiz 1 konsep mol dan penyetaraan reaksi

University

•

40 Qs

KUIS KOMUNIKASI MASSA

KUIS KOMUNIKASI MASSA

University

•

40 Qs

Module4QuizLabWth230

Module4QuizLabWth230

Assessment

Quiz

•

Science

•

University

•

Practice Problem

•

Medium

Created by

Armilyn Martinez

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is stored in a pointer variable?

Value of a variable

Address of a variable

Data type of a variable

Size of a variable

2.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

In the following code snippet, what does p+1 represent? int number = 5; int *p = &number; p = p + 1;

Incrementing the value of number

The next integer value in memory

Moving the pointer to the next memory location

Adding 1 to the address stored in p

3.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Which operator is used to dereference a pointer?

&

*

->

%

4.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What will the following program output if run on a 32-bit architecture? int number = 10; int *p = &number; printf("%u\n", p); p = p + 1; printf("%u\n", p);

Address increases by 1

Address increases by 2

Address increases by 4

Address remains unchanged

5.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What does the following code print? int arr[3] = {10, 20, 30}; int *p = arr; printf("%d\n", *(p + 2));

10

20

30

Error

6.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What does the following code initialize in p2? struct Point p2 = {.x = 20};

All members are initialized to 0

Only x is initialized, others are undefined

All members are initialized to the same value

Compilation error

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Which member access operator is used to access a structure's member?

->

.

*

&

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?