C Programming

Quiz
•
Other
•
Professional Development
•
Hard
Used 290+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In the following loop construct, which one is executed only once always.
for(exp1; exp2; exp3)
exp1
exp3
exp1 and exp3
exp1,exp2 and exp3
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The continue statment cannot be used with
for
while
do while
switch
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
goto can be used to jump from main to within a function?
true
false
-
-
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which loop is guaranteed to execute at least one time.
for
while
do while
none of the above
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A labeled statement consist of an identifier followed by
:
;
?
=
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
c = (n) ? a : b; can be rewritten asexp1 ? 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
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following C code?
#include <stdio.h>
int main()
{
while ()
printf("In while loop ");
printf("After loop\n");
}
In while loop after loop
After loop
Compile time error
Infinite loop
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Logical and Programming Questions

Quiz
•
Professional Development
20 questions
Introduccion a la Programacion - Fundamentos de Programacion -P2

Quiz
•
Professional Development
13 questions
TEC-T96

Quiz
•
Professional Development
10 questions
Briefings Obrigatórios para Novos Tripulantes

Quiz
•
Professional Development
20 questions
CSS Unit 1

Quiz
•
Professional Development
14 questions
Bash-Scripting Intro - v0

Quiz
•
Professional Development
15 questions
Python Loops

Quiz
•
Professional Development
15 questions
Quiz sur les tableaux en C

Quiz
•
Professional Development
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade