
pointers quizz

Quiz
•
Education
•
University
•
Hard
Auzoom four
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Akhil is learning C programming and wants to organize his data effectively. Which of the following is used to define a structure in C?
A) struct
B) structure
C) structural
D) class
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
During a programming class, Alisha is learning about different data types in C. She comes across a concept that allows her to define a variable that can hold multiple types of data. What keyword is used to create a union type in C?
A) union
B) type
C) combine
D) merge
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ishaan is learning C programming and wants to understand how to declare pointers. Which of the following is a valid way for him to declare a pointer in C?
A) int *ptr;
B) int ptr*;
D) ptr int;
C) *int ptr;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Arnav is learning C programming and comes across the 'sizeof' operator. What is the purpose of the 'sizeof' operator in C?
A) To determine the size of a variable
C) To declare a variable
D) To initialize a variable
B) To allocate memory
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Avani is trying to understand what happens to a pointer in C that has not been initialized. What is the value of such a pointer?
C) Undefined
B) 0
A) NULL
D) Random value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Rohan has a box that contains a key to another box. Which operator is used to access the value at the address stored in Rohan's box?
D) ::
C) ->
B) *
A) &
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when Krish tries to dereference a NULL pointer in C?
D) It is safe and does nothing
C) It returns a random value
B) It causes a segmentation fault
A) It returns 0
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Chương 1 - Giới thiệu ngôn ngữ lập trình

Quiz
•
University
15 questions
level 2

Quiz
•
University
15 questions
C Programming-1

Quiz
•
University
20 questions
UT- 2 (Quiz on verilog)

Quiz
•
University
20 questions
Kuis 1 ASD

Quiz
•
University
20 questions
Quiz

Quiz
•
University
20 questions
BRAIN BUSTERS (ROUND2)

Quiz
•
University
20 questions
С hashtag base

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade