
Module4LECMT7

Quiz
•
Science
•
University
•
Medium
Armilyn Martinez
Used 3+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
37 questions
Ch. 11 Digestive System

Quiz
•
11th Grade - University
36 questions
Natural Sciences & Technology Quiz

Quiz
•
6th Grade - University
40 questions
7th Grade 1st Semester Final Exam Review

Quiz
•
7th Grade - University
40 questions
Light and Shadow Quiz

Quiz
•
6th Grade - University
45 questions
Queue Data Structure Quiz

Quiz
•
University
37 questions
Basic EE

Quiz
•
University
38 questions
Câu hỏi về công nghệ đa phương tiện

Quiz
•
University
35 questions
DH105 Dental Anatomy Final Review

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University