pra PSPM SC025 (F02 KML)

pra PSPM SC025 (F02 KML)

6th Grade - University

24 Qs

quiz-placeholder

Similar activities

Apple Swift Playgrounds: Learn to Code 1 Vocabulary (Lessons 0 - 6)

Apple Swift Playgrounds: Learn to Code 1 Vocabulary (Lessons 0 - 6)

9th - 12th Grade

20 Qs

Comprog (Review)-October 25, 2022 (PM)

Comprog (Review)-October 25, 2022 (PM)

11th Grade

25 Qs

c++ MCQS

c++ MCQS

University

20 Qs

National 5 Programming (VB and Theory)

National 5 Programming (VB and Theory)

1st - 11th Grade

20 Qs

GD2 - 3.13 Unit 3 Test - Loops, Strings & Arrays

GD2 - 3.13 Unit 3 Test - Loops, Strings & Arrays

10th - 12th Grade

20 Qs

PyGame

PyGame

University

20 Qs

GCSE Computer Science: Programming (Python)

GCSE Computer Science: Programming (Python)

9th - 12th Grade

25 Qs

Python while loops

Python while loops

12th Grade

20 Qs

pra PSPM SC025 (F02 KML)

pra PSPM SC025 (F02 KML)

Assessment

Quiz

Science, Computers

6th Grade - University

Medium

Created by

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

Media Image

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?