
C-Volution (Intermediate)
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
Sujal Bhagat
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Q4. Entity Relationship Modelling
Quiz
•
University
17 questions
Q5. Normalization of Database Table
Quiz
•
University
15 questions
BASIC PC COMPONENTS AND TROUBLESHOOTING - BATCH 1
Quiz
•
University
18 questions
CHAPTER 1: SYSTEM ANALYSIS AND DESIGN
Quiz
•
University
20 questions
Information Technology Quiz
Quiz
•
University
22 questions
ÔN TẬP CRV1
Quiz
•
6th Grade - University
15 questions
KOMPONEN CPU
Quiz
•
11th Grade - University
20 questions
Activity - Task Completion and Safety
Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
