Quiz 2

Quiz 2

University

10 Qs

quiz-placeholder

Similar activities

Chapter 4

Chapter 4

University

11 Qs

PDM LS01 - Quiz 1

PDM LS01 - Quiz 1

University

15 Qs

Database Concepts and MS Access Assessment

Database Concepts and MS Access Assessment

8th Grade - University

10 Qs

SOAL MID SEMESTER INFORMATIKA

SOAL MID SEMESTER INFORMATIKA

6th Grade - University

10 Qs

Pemahaman Sistem Komputer Kelas 8

Pemahaman Sistem Komputer Kelas 8

8th Grade - University

15 Qs

Arrays in CQuiz

Arrays in CQuiz

1st Grade - University

10 Qs

แข่งขันcodingม.ปลาย

แข่งขันcodingม.ปลาย

12th Grade - University

15 Qs

Arduino Basics: Inputs and Outputs Quiz

Arduino Basics: Inputs and Outputs Quiz

12th Grade - University

11 Qs

Quiz 2

Quiz 2

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Wai Li

Used 1+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?