LAB04

LAB04

University

7 Qs

quiz-placeholder

Similar activities

Fundamentals of HTML and CSS

Fundamentals of HTML and CSS

University

10 Qs

Quiz Assesmen Awal "Perangkat Keras"

Quiz Assesmen Awal "Perangkat Keras"

7th Grade - University

10 Qs

Deep learning Batch 1

Deep learning Batch 1

University

10 Qs

QUIZ GAME

QUIZ GAME

11th Grade - University

10 Qs

Python_Quiz_1

Python_Quiz_1

University

10 Qs

Keyboard Shortcuts

Keyboard Shortcuts

5th Grade - University

11 Qs

OOP-Q1

OOP-Q1

University

10 Qs

Java_Quiz_Part_2

Java_Quiz_Part_2

University

12 Qs

LAB04

LAB04

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

Salman Khwaja

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

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