Syed: IGCSE Computer Science: Program Logic
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Syed M
Used 9+ times
FREE Resource
Enhance your content in a minute
33 questions
Show all answers
1.
DROPDOWN QUESTION
1 min • 5 pts
Write a program that asks the user to input a number, if the number is less than 10, it outputs the message "Too small" otherwise, "Valid".
OUTPUT ("Enter a Number")
(a)
(b)
OUPUT ("Too small")
(c)
OUPUT ("Valid")
(d)
2.
DROPDOWN QUESTION
1 min • 5 pts
Complete the code that finds the smallest number input by the user, using the WHILE loop.
(a)
Number ←1
(b)
(c)
(d)
(e)
ENDIF
ENDWHILE
3.
DROPDOWN QUESTION
1 min • 5 pts
Complete the code that finds the largest number input by the user, using the WHILE loop.
(a)
Number ←1
(b)
(c)
(d)
(e)
ENDIF
ENDWHILE
4.
DROPDOWN QUESTION
1 min • 5 pts
Complete the code that finds the average of the numbers input by a user:
(a)
Total←0
Number ← 1
(b)
OUTPUT("Enter a number or 0 to stop")
(c)
(d)
(e)
ENDWHILE
OUTPUT (Total/Count)
5.
DROPDOWN QUESTION
1 min • 5 pts
Complete the code that checks if a number input by the user is higher than 1 and less than 10.
OUTPUT("Enter a Number between 1 and 10")
(a)
(b)
OUTPUT("Number is between 1 and 10.")
(c)
OUTPUT ("Number is not between 1 and 10.")
(d)
6.
DROPDOWN QUESTION
1 min • 5 pts
Complete the code to print the first 10 natural numbers.
(a)
(b)
OUTPUT(i)
(c)
ENDWHILE
7.
DROPDOWN QUESTION
1 min • 5 pts
Complete the code to display all even numbers between 1 and 20.
i ← 2
WHILE i <= 20 DO
(a)
(b)
ENDWHILE
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
35 questions
PLTW CSIM Lesson 1 Assessment
Quiz
•
5th - 9th Grade
30 questions
Fundamentals of Computers
Quiz
•
5th Grade - University
33 questions
OCR GCSE 2.6 Data Representation Y9
Quiz
•
9th Grade
30 questions
Computer
Quiz
•
9th - 10th Grade
30 questions
Year 9 Michaelmas Revision
Quiz
•
9th Grade
29 questions
Unreal Engine 4 - Widget Blueprints
Quiz
•
9th Grade - University
30 questions
8 ci sinif ümumiləşdirici test
Quiz
•
6th Grade - University
28 questions
Email and Communication
Quiz
•
9th Grade
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
