Search Header Logo

Pointers in C

Authored by ReNiShA S

Computers

12th Grade

Used 7+ times

Pointers in C
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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?

*

.

->

::

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?