Search Header Logo

Grade 12 -CE-Term 2-2023

Authored by zelealem haile

Computers

12th Grade

Used 2+ times

Grade 12 -CE-Term 2-2023
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the output of the below code?

i = 3

while (i>=0):

print (i)

i = i -1

3 2 1 0

321

210

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

The continue statement in Python returns the control to the beginning of the while loop.

True

False

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

The pass statement is a null operation; noting happens when it executes

True

False

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will be the output

for l in 'Jhon':

   if l == 'o':

      pass

   print(l)

J

h

n

J

h

o

n

o

h

n

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

A loop becomes infinite loop if a condition never becomes true.

True

False

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

______________ is a network port to connect Raspberry Pi to the internet.

HDMI port

   

Ethernet port

USB port

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

If the else statement is used with a while loop, the else statement is executed when the condition becomes true.

True

False

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?