
c programming quiz
Quiz
•
Engineering
•
University
•
Practice Problem
•
Medium
Sindhuja. M
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Artificial Intelligence CT-4
Quiz
•
University
20 questions
Probabilidades en Modelos discretos
Quiz
•
University
18 questions
Quiz Workshop Proteus 2 2025
Quiz
•
University
20 questions
Quiz Pemrograman Arduino
Quiz
•
11th Grade - University
15 questions
PO 1
Quiz
•
University
20 questions
Soal Matematika Dasar Jual Beli
Quiz
•
12th Grade - University
20 questions
Machine Learning
Quiz
•
University
15 questions
Actividad 1 Ethernet
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Engineering
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
