
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
programmazione fino ai cicli 3C

Quiz
•
11th Grade - University
17 questions
ExamenPE_Unidad4_DSM203

Quiz
•
University
17 questions
Quiz de Programação em C

Quiz
•
University
20 questions
DATA STRUCTUIR Quiz1 (AIML)

Quiz
•
University
15 questions
Массив

Quiz
•
University
16 questions
Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Quiz
•
11th Grade - University
20 questions
Uji Pemahaman Array dan Fungsi

Quiz
•
11th Grade - University
15 questions
BSc Lab Component

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 Information Technology (IT)
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