
Pointers from data structures and algorithms
Quiz
•
Engineering
•
University
•
Hard
Keertipriya Bellary
FREE Resource
Enhance your content in a minute
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
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
22 questions
WSN-MAC Protocol
Quiz
•
University
30 questions
ByteBattle 2.0(3)
Quiz
•
University
30 questions
2.3.2 - Personal and Professional Ethics
Quiz
•
10th Grade - University
20 questions
quiz3_07/08/2025
Quiz
•
University
20 questions
ARM Co-Processor Interface Quiz
Quiz
•
University
20 questions
General Knowledge Quiz
Quiz
•
University
20 questions
Embedded Systems Quiz_3_with realworld scenario
Quiz
•
University
20 questions
C Programming Quiz - 1
Quiz
•
University
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Engineering
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
