21-22 S3 UT Past paper

21-22 S3 UT Past paper

9th - 12th Grade

16 Qs

quiz-placeholder

Similar activities

Python Iteration

Python Iteration

10th Grade

13 Qs

Ôn tập KTGK. Bài 20. Câu lệnh lặp For

Ôn tập KTGK. Bài 20. Câu lệnh lặp For

10th Grade

15 Qs

Compound Operators in Java

Compound Operators in Java

9th - 12th Grade

12 Qs

FOR Loops Python

FOR Loops Python

9th - 12th Grade

12 Qs

Java 1D Arrays

Java 1D Arrays

9th Grade - University

14 Qs

Python Fundamentals and Programming

Python Fundamentals and Programming

11th - 12th Grade

13 Qs

Arrays Unit

Arrays Unit

10th - 12th Grade

15 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

21-22 S3 UT Past paper

21-22 S3 UT Past paper

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Hoi Lee Wong

Used 4+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The initial value of A and B are 9 and 3. After executing the following Python statements, what are the values of A and B?

                                           

               C = A + B

               A = C - A

               B = C - A

3

3

3

9

6

9

9

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following expressions can generate an even random number from 16 to 30?

random.randint(16,30) + 2 * 8

random.randint (1,16) * 2 + 8

random.randint (0,7) + 16 * 2

random.randint (0,7) * 2 + 16

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the truth value for the following expression?

("APPLE" > "apple") or ("Boy">"B") and not("C">"c")

true

false

"A" or "B" and not "C"

no truth value

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many ‘#’ will be shown on the screen after executing the following program segment?

for i in range(-5,11):

      print("#")

5

10

15

16

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final value of n after executing the following program segment?

 

    n=0

    for i in range(1,6):

       n=n + 3 * i

15

30

45

60

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output after the execution of the following program segment?

 

for x in range(8,1,-1):

    if x%2==0:

        print(x,end="")

print()

8765432

8642

2468

864

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a is input as 60, what will be the output for the following program segment?

 

if a>50:

    if a>80: print("P")

    else: print("Q")

elif a<20: print("R")

else: print("S")

P

Q

R

S

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?