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
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
BYTS ASSESSMENT

Quiz
•
University
10 questions
Quiz on Basics of C

Quiz
•
University
15 questions
Quiz Pemrograman Arduino

Quiz
•
10th Grade - University
6 questions
Kuis Pointer 1

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade