
c programming quiz

Quiz
•
Engineering
•
University
•
Medium
Sindhuja. M
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
SET A = 5
SET B = 10
IF A > B THEN
PRINT "A"
ELSE
PRINT "B"
END IF
A
B
5
10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
SET X = 3
WHILE X < 6 DO
PRINT X
SET X = X + 1
END WHILE
3 4 5
3 4 5 6
3 4 5 6 7
Infinite Loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
SET SUM = 0
FOR I = 1 TO 4 DO
SUM = SUM + I
END FOR
PRINT SUM
10
6
15
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
INPUT N
SET FACT = 1
FOR I = 1 TO N DO
FACT = FACT * I
END FOR
PRINT FACT
Prints sum of N natural numbers
Prints square of N
Prints factorial of N
Prints N
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
SET A = 2
SET B = 3
SET C = A
SET A = B
SET B = C
PRINT A, B
2, 3
3, 2
3, 3
2, 2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
SET A = 7
IF A MOD 2 = 0 THEN
PRINT "Even"
ELSE
PRINT "Odd"
END IF
Even
Odd
7
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
INPUT N
SET SUM = 0
WHILE N > 0 DO
SUM = SUM + (N MOD 10)
N = N DIV 10
END WHILE
PRINT SUM
Count digits of N
Count digits of N
Reverse N
Multiply digits of N
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Preguntas sobre Hipoacusia y Prevención

Quiz
•
University
20 questions
Computer Networks CT-2

Quiz
•
University
15 questions
BugBlitz

Quiz
•
University
15 questions
TECH WHIZ

Quiz
•
University
20 questions
CODEBURST : JAVA EDITION

Quiz
•
University
20 questions
Code Sprint '25

Quiz
•
University
15 questions
Codigo

Quiz
•
University
20 questions
Verilog Datatypes and Operators Challenge

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Engineering
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University