Pointers in C

Pointers in C

12th Grade

50 Qs

quiz-placeholder

Similar activities

Computer Fundamentals MCQ Quiz by Tr.WLH

Computer Fundamentals MCQ Quiz by Tr.WLH

9th - 12th Grade

50 Qs

Form 4 Mid Term

Form 4 Mid Term

12th Grade

50 Qs

EC8393

EC8393

1st Grade - University

45 Qs

Year 11 - CS Blended Learning - Homework 9

Year 11 - CS Blended Learning - Homework 9

10th - 12th Grade

52 Qs

AQA GCSE Computer Systems

AQA GCSE Computer Systems

7th Grade - University

50 Qs

Computer Basics Test

Computer Basics Test

9th - 12th Grade

50 Qs

Super Computers & Mainframes AND Software

Super Computers & Mainframes AND Software

11th - 12th Grade

46 Qs

BTEC Information Technology: Unit 1 Learning Aim A

BTEC Information Technology: Unit 1 Learning Aim A

11th - 12th Grade

46 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?