What is the output of the following code?
#include

C-Volution (Hard)

Quiz
•
Information Technology (IT)
•
University
•
Hard
Sujal Bhagat
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
1 1 2 1 2 3 1 2 3 4 1 2 3 4 5
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5
1 2 3 4 5 1 2 3 4 1 2 3 1 2 1
1 2 3 4 5 2 3 4 5 3 4 5 4 5 5
2.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What is the output of the following code?
#include
***** **** *** ** *
* ** *** **** *****
***** **** *** ** *
* ** *** **** *****
3.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What is the error in the following code?
#include
Missing #include directive.
Dereferencing an uninitialized pointer.
Incorrect format specifier in printf().
No error.
4.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What does the following code snippet do? #define SQUARE(x) x * x
Defines a function named SQUARE.
Defines a macro named SQUARE.
Declares a variable named SQUARE.
Includes a header file named SQUARE.
5.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What is the output of the following code?
#include
* * * * * * *
**** **** **** ****
* * * *
Nothing will be printed.
6.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What is the correct way to dynamically allocate memory for an array of 10 integers?
int *arr = malloc(10 * sizeof(int));
int *arr = calloc(10, sizeof(int));
int *arr = new int[10];
Both (a) and (b)
7.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What is the output of the following code?
#include
1 2 3 4 5
1 2 3 4 5 6
1 2 3 4
Infinite loop
Create a free account and access millions of resources
Similar Resources on Quizizz
6 questions
Kuis Pointer 1

Quiz
•
University
10 questions
3F_14042025_Verifica per orale Informatica

Quiz
•
11th Grade - University
12 questions
PYTHON APTITUDE

Quiz
•
University
15 questions
programmazione fino ai cicli 3C

Quiz
•
11th Grade - University
8 questions
Intro to JS: Variables & Values

Quiz
•
11th Grade - University
15 questions
Java_MCQ_3

Quiz
•
University
10 questions
Quiz on Basics of C

Quiz
•
University
15 questions
Quiz Pemrograman Arduino

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade