Quiz 2

Quiz 2

University

10 Qs

quiz-placeholder

Similar activities

Scratch Pre-knowledge

Scratch Pre-knowledge

3rd Grade - University

15 Qs

Quiz về Kiểu Dữ Liệu List và Set (1)

Quiz về Kiểu Dữ Liệu List và Set (1)

7th Grade - University

15 Qs

KUIS BAB 3

KUIS BAB 3

7th Grade - University

10 Qs

KUIS KODING & KA 1

KUIS KODING & KA 1

10th Grade - University

10 Qs

Diploma in IT - Computer Savvy Quiz

Diploma in IT - Computer Savvy Quiz

University

15 Qs

PDM - LS01 - Quiz 3 - Repetition

PDM - LS01 - Quiz 3 - Repetition

University

15 Qs

 Dasar Komputasi dan Berpikir Komputasional

Dasar Komputasi dan Berpikir Komputasional

10th Grade - University

10 Qs

Understanding Loops in C Programming

Understanding Loops in C Programming

1st Grade - University

15 Qs

Quiz 2

Quiz 2

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Wai Li

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...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What is the result of this expression?

8//3

2.6
2
3
2.0

2.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Which statement correctly assigns the value 10 to variable x?

10 -> x
x == 10
x := 10
x = 10

3.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What is the output of this code?

x = 3

y = 7

print(x > 2 and y < 10)

True
False
Error
None

4.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What will this expression return?

not (4 > 2)

True
False
4
2

5.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Which of the following is NOT a comparison operator in Python?

>=
!=
+=
==

6.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What type of value does input() return by default?

Integer
Float
Boolean
String

7.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What does the following code do?

if True:

pass

else:

print("Wrong")

It prints "Wrong"
It causes an error
It does nothing
It prints "pass"

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?