
Pointers from data structures and algorithms
Quiz
•
Engineering
•
University
•
Hard
Keertipriya Bellary
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a pointer in C/C++ store?
Data value
Memory address
Variable name
Function name
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to access the value stored at the address a pointer points to?
&
*
→
%
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you dereference a NULL pointer?
Program runs normally
Access violation error (segmentation fault)
Returns 0
Memory is allocated automatically
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In dynamic memory allocation, which function is used in C to allocate memory?
alloc()
malloc()
new
calloc()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a dangling pointer?
Pointer initialized to zero
Pointer that points to freed memory
Pointer pointing to a global variable
Pointer used for dynamic allocation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you obtain the memory address of a variable in C?
Using * operator
Using & operator
Using → operator
Using % operator
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following snippet? int a = 10; int *p = &a; printf("%d", *p);
Address of a
Garbage value
10
Compile-time error
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Neural Networks Quiz
Quiz
•
University
20 questions
Funcionamiento del Computador
Quiz
•
University
20 questions
Quiz on Memory in Embedded Systems
Quiz
•
University
20 questions
UNIT1
Quiz
•
University
20 questions
ECEElec3_Mod1_Quiz
Quiz
•
University
20 questions
NEXUS'25
Quiz
•
University
25 questions
CIPHER QUEST ROUND 1 SET 1
Quiz
•
University
20 questions
Diagnóstico de Programación
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Engineering
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
