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)
Syed: IGCSE Computer Science: Program Logic
Quiz
•
Computers
•
9th Grade
•
Medium
Syed M
Used 9+ times
FREE Resource
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
28 questions
Python Functions Review Quiz
Quiz
•
9th - 12th Grade
31 questions
Python Course Selection
Quiz
•
7th - 11th Grade
28 questions
N5 Software Design and Development
Quiz
•
9th - 12th Grade
30 questions
Python Intro Practice
Quiz
•
9th - 12th Grade
35 questions
Python procedures and functions
Quiz
•
8th - 10th Grade
35 questions
Strings In java
Quiz
•
9th - 10th Grade
28 questions
AP Computer Science Final Review
Quiz
•
9th - 12th Grade
30 questions
Programming Techniques
Quiz
•
8th - 10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University