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.
21 questions
Programming Basics
Quiz
•
9th - 12th Grade
20 questions
Control Structures C#
Quiz
•
University
20 questions
VCE Psychology Key Science Skills
Quiz
•
11th - 12th Grade
20 questions
End of year quiz: Small Basic
Quiz
•
7th Grade
20 questions
Python programming
Quiz
•
6th Grade
20 questions
GCSE - Algorithms 1
Quiz
•
9th - 10th Grade
20 questions
8525 AQA GCSE 3.2.6 Data Structures
Quiz
•
10th Grade
20 questions
Jago PHP
Quiz
•
11th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade