21-22 S3 UT Past paper

21-22 S3 UT Past paper

9th - 12th Grade

16 Qs

quiz-placeholder

Similar activities

Excel

Excel

12th Grade

15 Qs

BÀI 24-25 TIN 10

BÀI 24-25 TIN 10

10th Grade

20 Qs

Lecture Exercise Topic 1.3

Lecture Exercise Topic 1.3

12th Grade

21 Qs

Unit Test 1 Class 8 Computer

Unit Test 1 Class 8 Computer

8th - 9th Grade

20 Qs

Computer Science - X

Computer Science - X

8th - 10th Grade

20 Qs

Administrasi Infrastruktur Jaringan 1

Administrasi Infrastruktur Jaringan 1

11th Grade

20 Qs

UH1_INFO_XII

UH1_INFO_XII

11th Grade

20 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

21-22 S3 UT Past paper

21-22 S3 UT Past paper

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Hoi Lee Wong

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?