C Code Master

Quiz
•
Computers
•
Professional Development
•
Hard
Amartya Vishwakarma
Used 9+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the result of num1 variable after execution of the following statements?
int j = 1, num1 = 4;
while (++j <= 10)
{
num1++;
}
11
12
13
14
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following
printf("%d",34+24/12%3*5/2-4);
35
34
32
37
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
c = (n) ? a : b; can be rewritten as
exp1 ? exp2 : exp3;
if(n){c = a;}else{c = b;}
if(!n){c = a;}else{c = b;}
if(n){c = b;}else{c = a;}
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code.
void main()
{
int i = 0;
if (i == 0)
{
printf("Hello");
break;
}
}
Hello is printed infinite times
Hello
compile time error
varies
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Point out the wrong statement about malloc.
Allocated memory has undefined value
Pointer is NULL if memory is not allcoated
It returns pointer to the allocated space
It doesn't lead to memory leak if memory is not de allocated
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result after execution of the following code if a is 10, b is 5, and c is 10?
if ((a > b) && (a <= c))
a = a + 1;
else
c = c+1;
a = 10, c = 10
a = 11, c = 10
a = 11, c = 11
a = 10, c = 11
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
char ch;
ch=A;
printf(“%c”,ch);
Compile time error
A
65
garbage value
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
CodeHS - Intro to Python - Basics and Console Interaction

Quiz
•
9th Grade - Professio...
20 questions
Python Programming Fundamental

Quiz
•
Professional Development
17 questions
Java Basics

Quiz
•
Professional Development
20 questions
Вопросы по информационной безопасности

Quiz
•
Professional Development
20 questions
Data Structure

Quiz
•
Professional Development
20 questions
first round quiz

Quiz
•
Professional Development
20 questions
C Programming Quiz

Quiz
•
Professional Development
21 questions
Pointers & Strings in C

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development