Pointers in C

Pointers in C

12th Grade

50 Qs

quiz-placeholder

Similar activities

L3 Digital Technology (entry test)

L3 Digital Technology (entry test)

11th - 12th Grade

45 Qs

CompTIA Module 1-6

CompTIA Module 1-6

9th - 12th Grade

50 Qs

virtual memory

virtual memory

11th - 12th Grade

50 Qs

CSS Quiz

CSS Quiz

11th - 12th Grade

50 Qs

OS CH8_1

OS CH8_1

12th Grade - Professional Development

45 Qs

ICT in society

ICT in society

5th Grade - University

50 Qs

Chapter 3 System Components Review

Chapter 3 System Components Review

10th - 12th Grade

50 Qs

S3 Assessment Revision

S3 Assessment Revision

9th - 12th Grade

47 Qs

Pointers in C

Pointers in C

Assessment

Quiz

Computers

12th Grade

Hard

Created by

ReNiShA S

Used 6+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is pointer arithmetic in C?

Accessing data stored in pointers

Assigning values to pointers in C

Manipulation of memory addresses using pointers.

Using pointers to perform mathematical operations

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to access the value pointed by a pointer?

&

->

.

*

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of a pointer variable in C?

4 bytes (on a 32-bit system) or 8 bytes (on a 64-bit system)

10 bytes

2 bytes

16 bytes

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a null pointer in C?

A null pointer is a pointer that points to a random memory address.

A null pointer is a pointer that points to the address 0.

A null pointer is a pointer that does not point to any memory address.

A null pointer is a pointer that points to a non-existent memory location.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about pointer to functions in C?

A pointer to a function in C is a variable that stores the value of a function.

A pointer to a function in C is used to call a function directly.

A pointer to a function in C is a data type that can only store the address of a function.

A pointer to a function in C is a variable that stores the address of a function.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a pointer to structure in C?

To store the memory address of a structure and access its members using the pointer.

To perform arithmetic operations on a structure

To create a copy of a structure

To allocate memory for a structure

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to access the members of a structure through a pointer?

*

.

->

::

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?