Module4LECMT7

Module4LECMT7

University

40 Qs

quiz-placeholder

Similar activities

Final Lab. Quiz

Final Lab. Quiz

University

42 Qs

Ôn tập Tin học lớp 8 - GHK1 (2025-2026

Ôn tập Tin học lớp 8 - GHK1 (2025-2026

8th Grade - University

45 Qs

SCIENCE 7 REVIEW

SCIENCE 7 REVIEW

7th Grade - University

44 Qs

CS2110 Final Exam Review

CS2110 Final Exam Review

University

42 Qs

Linear DS

Linear DS

University

44 Qs

AM-04

AM-04

University

35 Qs

Applied Digital Skills

Applied Digital Skills

University

40 Qs

Câu hỏi về Excel và Word

Câu hỏi về Excel và Word

University

41 Qs

Module4LECMT7

Module4LECMT7

Assessment

Quiz

Science

University

Medium

Created by

Armilyn Martinez

Used 3+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a pointer in C?

A function that points to memory.

A variable that stores an address of another variable.

A constant memory location.

A variable that can only store integers.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to retrieve the address of a variable?

*

&

->

.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the * operator do when used with a pointer?

Declares a pointer variable.

Initializes a pointer.

Dereferences the pointer to access the value stored at the address.

Retrieves the size of a pointer.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid pointer declaration?

int *ptr;

int ptr*;

int &ptr;

*int ptr;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What value does a NULL pointer contain?

-1

1

0

An undefined value

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of a void pointer on a 32-bit system?

2 bytes

4 bytes

8 bytes

It depends on the data type it points to.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if a pointer is not initialized?

It points to the value 0.

It causes a segmentation fault.

It holds a garbage address.

The program will not compile.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?