
C-Volution (Intermediate)

Quiz
•
Information Technology (IT)
•
University
•
Hard
Sujal Bhagat
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the output of the following code
#include
5
10
15
Error
2.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which of the following is NOT a valid way to dynamically allocate memory?
malloc()
calloc()
realloc()
alloc()
3.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the primary difference between malloc() and calloc()?
malloc() initializes allocated memory to zero, calloc() does not.
calloc() allocates memory for a single element, malloc() for multiple.
malloc() allocates memory in bytes, calloc() in number of elements.
There is no difference.
4.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is a dangling pointer?
A pointer that points to a memory location that has been freed.
A pointer that has not been initialized.
A pointer that points to a null value.
A pointer that points to an invalid memory address.
5.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the output of the following code?
#include
5
6
7
Error
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which of the following is the correct way to declare a function pointer?
int (*func)(int, int);
int *func(int, int);
int func(int, int);
int *(func)(int, int);
7.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What does the const keyword signify when used with a pointer?
The pointer cannot be changed.
The value pointed to by the pointer cannot be changed.
Both the pointer and the value pointed to cannot be changed.
It has no effect.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Basics Quiz

Quiz
•
University
25 questions
Understanding Java Classes and Inheritance - UNIT 1

Quiz
•
University
20 questions
Revissão - Linguagem C (str, fun, stru, vt+mt,)

Quiz
•
University
25 questions
Byte Buzz-Brain vs Byte IT QUIZ 2025

Quiz
•
University
16 questions
Mảng 2 chiều trong C

Quiz
•
University
16 questions
Session 08: Array

Quiz
•
University
15 questions
Quiz Pemrograman Arduino

Quiz
•
10th Grade - University
20 questions
Data Structures and Algorithms

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
9/11 Experience and Reflections

Interactive video
•
10th - 12th 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
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University