Hackharbor 3.0 Day 3:C

Quiz
•
Engineering
•
University
•
Hard
Vivek N
Used 7+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the * operator do when used with a pointer?
Declares a pointer
Returns the size of the memory block
Dereferences the pointer to access the value
Increments the pointer
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the & operator do in C?
Multiplication
Access value at a memory address
Get memory address of a variable
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What must be done after dynamic memory is no longer needed?
Nothing
Use delete
Use realloc()
Use free()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What best describes the relationship between a pointer and the variable it points to?
A loyal friend who never leaves
An emotionally distant partner who only remembers the address
A clingy ex who still knows where you live
Just roommates
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a pointer to an integer?
int ptr;
int &ptr;
int *ptr;
pointer int ptr;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What exactly is a “pointer to a pointer”?
A friend who tells you where another friend is
A directory full of pizza recipes
A function that can’t make up its mind
A pointer that’s been left on read
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
1
2
Garbage value
Address of p
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Codigo

Quiz
•
University
25 questions
CUDA C/C++ Basics Quiz

Quiz
•
University
20 questions
c programming quiz

Quiz
•
University
16 questions
Unit 2-Understanding Human

Quiz
•
University
20 questions
Operating System Quiz

Quiz
•
University
15 questions
TECH WHIZ

Quiz
•
University
20 questions
CODEBURST : JAVA EDITION

Quiz
•
University
15 questions
BugBlitz

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Engineering
15 questions
Disney Trivia

Quiz
•
University
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University
20 questions
Disney Trivia

Quiz
•
University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
5 questions
Examining Theme

Interactive video
•
4th Grade - University
23 questions
Lab 4: Quizziz Questions

Quiz
•
University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University