The program will display "A" if the mark entered is greater or equal to 80 or "B" if the mark entered is between 70 to 79.
What's the output?
pra PSPM SC025 (F02 KML)
Quiz
•
Science, Computers
•
6th Grade - University
•
Medium
NURANISYAH Moe
Used 8+ times
FREE Resource
24 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The program will display "A" if the mark entered is greater or equal to 80 or "B" if the mark entered is between 70 to 79.
What's the output?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Determine whether the number -18 keyed in by the user is ”positive”, “negative”, or “zero"
Start
Read number
If(number > 0 )
Print “positive”
Else if(number < 0)
Print “negative”
Else
Print “zero”
Endif
Stop
positive
negative
zero
all above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value stored in variable p after the following statements are executed?
p=7/2+3
13.5
6.5
1.4
p
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Selection
Sequence
Repetition
Interaction
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of executing the following code?
The code :
Number = 5
While number z <= 5
If number < 5
Number = number + 1
Print (number)
The program will loop indefinitely
The value of the number will be printed exactly 1 time
The while loop will never get executed
The value of number will be printed exactly 5 times
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is correct about selection?
Specifies a block of one or more statements that are repeatedly executed until a condition is satisfied.
Perform one or more actions repeatedly while a certain condition is true.
Performs actions based on certain conditions.
Performs statements one after another in sequence.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is correct about sentinel?
a special value in the context of an algorithm that uses its presence as a condition of termination, typically in a loop or recursive algorithm
a non-special value in the context of an algorithm.
a data structure consisting of a collection of elements (values or variables).
the main logical structure of algorithms or programs.
20 questions
Learn to Code 1 Test
Quiz
•
6th Grade
19 questions
Excretory System
Quiz
•
9th Grade
23 questions
C que que que
Quiz
•
University
20 questions
AQA GCSE Computer Science - 3.2.2 Programming Concepts
Quiz
•
8th - 10th Grade
20 questions
Forensic Fingerprints
Quiz
•
8th - 12th Grade
20 questions
PHP Quiz 1
Quiz
•
University
20 questions
Creating Algorithms through Pseudocodes and Flowcharts
Quiz
•
10th Grade - University
20 questions
11.2 Constructs Cambridge iAS 9618
Quiz
•
11th 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
33 questions
Mechanical Energy Transfer
Quiz
•
6th Grade
45 questions
Final Review (Part 1)
Quiz
•
8th Grade
37 questions
ESRT Review
Quiz
•
7th - 10th Grade
80 questions
Wave Interactions and Properties
Quiz
•
6th - 8th Grade
138 questions
Science 7 Final Exam Review
Quiz
•
7th Grade
21 questions
8th grade Final Exam Part 2 of 2
Quiz
•
8th Grade
50 questions
Earth Science Regents Review 819
Quiz
•
9th Grade
17 questions
Amplify Rock Transformation
Quiz
•
8th Grade