LAB04

LAB04

University

7 Qs

quiz-placeholder

Similar activities

Ai Quiz3

Ai Quiz3

University

6 Qs

 Buenas Practicas pt.1

Buenas Practicas pt.1

University

7 Qs

高二資訊課補考題目

高二資訊課補考題目

11th Grade - University

10 Qs

SOAL IE

SOAL IE

University

12 Qs

G12- Python Strings Quiz

G12- Python Strings Quiz

12th Grade - University

9 Qs

Review loops

Review loops

8th Grade - University

12 Qs

Review CS

Review CS

University

9 Qs

Алгоритмизация и программирование

Алгоритмизация и программирование

University

11 Qs

LAB04

LAB04

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Salman Khwaja

Used 1+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the result of the following python expression?

( 9 - 3 > 5 and 3 <= 2 + 1 ) or not (True)

True

False

not True

Error: arithematic operators with logical operators

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

name1 = "NameA"

name2 = "NameB"

if name1 <= name2 :

print(name1[4] + "&" + name2[4])

else :

print(name2[4] + "&" + name1[4])

1&2

B&A

2&1

A&B

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

age = 25

if age >= 0 and age <= 16:

print("Age Group : Child")

elif AGE <= 30:

print("Age Group : Young Adults")

else:

print("Age Group : Middle-aged Adults")

Age Group : Child

Age Group : Young Adults

Error

Age Group : Middle-aged Adults

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

x = 0

a = 5

b = 5

if b < 0:

x = x + 5

elif a > 5:

x = x + 4

else:

x = x + 3

print(x)

9

8

5

3

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

num = 4

if num > 0:

print("A")

if num == 4:

print("B")

else:

print("C")

A

B

A

B

C

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

x = 5

if x > 2:

x = 1

if x > 2:

print("Hi")

else:

print("Bye")

Hi

Bye

1

Hi

1

Bye

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

x = 2

if x > 1:

print("A", end='')

elif x > 0:

print("B", end='')

print("C")

A

B

BC

AC