Search Header Logo

pra PSPM SC025 (F02 KML)

Authored by NURANISYAH Moe

Science, Computers

6th Grade - University

Used 8+ times

pra PSPM SC025 (F02 KML)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

FILL IN THE BLANKS 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?

(a)  

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?