
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
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
Already have an account?
Similar Resources on Wayground
20 questions
Club Excel - Core Member Recruitment 2K25
Quiz
•
University
23 questions
FUNDAMENTOS DE PYTHON 2DO PARCIAL
Quiz
•
University
25 questions
Exploring the 8086 Microprocessor
Quiz
•
University
30 questions
ByteBattle 2.0 (2)
Quiz
•
University
29 questions
Introduction to AI (Quiz-1)
Quiz
•
University
30 questions
Algorithm UNIT Quiz
Quiz
•
University
20 questions
SQL TREASURE HUNT
Quiz
•
University
20 questions
Day 2 Wipro
Quiz
•
University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Engineering
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
