
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
What is the output of the following code?
#include
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 Wayground
12 questions
Aula07 - Matrizes

Quiz
•
University
6 questions
G9-Introduction to Python Selection

Quiz
•
9th Grade - University
15 questions
Web Application - PHP Repetition

Quiz
•
University
10 questions
C++ Templates Quiz

Quiz
•
University
10 questions
SWE111_quiz 2

Quiz
•
University
15 questions
BYTS ASSESSMENT

Quiz
•
University
13 questions
Session 15 + 16 : Function

Quiz
•
University
10 questions
Abstracciones procedimentales

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