
C program MCQ contest

Quiz
•
Computers
•
University
•
Hard
Koushik T
Used 5+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this statement "printf("%d", (a++))"?
Garbage.
Error message.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many times will the following loop execute?
for(j = 1; j <= 10; j = j-1)
Forever
Never
0
1
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one of the following is a loop construct that will always be executed once?
for
while
switch
do while
4.
MULTIPLE CHOICE QUESTION
45 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 = 10, c = 11
a = 11, c = 11
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many characters can a string hold when declared as follows?
char name[20]:
18
19
20
None of these
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Directives are translated by the
pre-processor
compiler
linker
editor
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many bytes does "int = D" use?
0
1
2 or 4
10
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
C Programming Basics

Quiz
•
University
50 questions
C Programming Basics

Quiz
•
University
50 questions
Kiến thức về ngôn ngữ lập trình C

Quiz
•
University
48 questions
Data Structures

Quiz
•
University
50 questions
Java Quizathon

Quiz
•
University
45 questions
Lesson 1 Long Quiz

Quiz
•
University
51 questions
C Programming Quiz

Quiz
•
University
50 questions
TARANG 2023 Technical Quiz

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 Computers
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