
Module4LECMT7
Quiz
•
Science
•
University
•
Practice Problem
•
Medium
Armilyn Martinez
Used 3+ times
FREE Resource
Enhance your content in a minute
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.
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?
Similar Resources on Wayground
40 questions
Matter and Energy Unit Review
Quiz
•
11th Grade - University
40 questions
PEWARISAN SIFAT
Quiz
•
9th Grade - University
40 questions
Di Truyền Đại Cương (P.3)
Quiz
•
University
35 questions
Understanding Motion in Graphs
Quiz
•
6th Grade - University
44 questions
Ecuación de Difusión - Soluciones
Quiz
•
University - Professi...
42 questions
Eye on the Reef
Quiz
•
9th Grade - University
38 questions
Unit 2 Review
Quiz
•
8th Grade - University
37 questions
Review Planets in Our Solar System
Quiz
•
5th Grade - University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
