
Pointers in C Quiz
Authored by priyanka it
Computers
5th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a pointer in C?
A function that returns a value in C
A variable that holds the memory address of another variable
A type of data structure in C
A keyword used to declare a variable in C
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a pointer in C?
By using the dollar sign ($) before the variable name.
By using the hash symbol (#) before the variable name.
By using the exclamation mark (!) before the variable name.
By using the asterisk (*) symbol before the variable name.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare and use a pointer to pointer in C?
int *ptr;
int **ptr;
int *ptr = &ptr;
int ptr = &ptr;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the value pointed to by a pointer in C?
Using the asterisk (*) symbol before the pointer name
Using the exclamation mark (!) before the pointer name
Using the hash symbol (#) before the pointer name
Using the dollar sign ($) before the pointer name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of a pointer in C?
Depends on the data type it points to
Always 4 bytes
Always 8 bytes
Always 2 bytes
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare and use a pointer to a constant in C?
int *const ptr;
const int *ptr;
int const *ptr;
Both A and B
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using double pointers in C?
To store the memory address of a pointer
To declare a new data type
To perform arithmetic operations on strings
To print the value of a pointer
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?