Python Basics Quiz

Python Basics Quiz

University

10 Qs

quiz-placeholder

Similar activities

Java set 1

Java set 1

University

10 Qs

Recuperación Lógica

Recuperación Lógica

University

10 Qs

AlgoPro Python - Sesi 1

AlgoPro Python - Sesi 1

University

10 Qs

Introduction to Python Programming Quiz 9E

Introduction to Python Programming Quiz 9E

10th Grade - University

13 Qs

Tech quiz Round 1

Tech quiz Round 1

University

15 Qs

Brainy Bites: Python

Brainy Bites: Python

University

12 Qs

Technoquiz..3

Technoquiz..3

University

15 Qs

HTML PHP C++

HTML PHP C++

University

10 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Other

University

Medium

Created by

Nana Amoah

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

1. Which of the following is a valid variable name in Python?

1_variable

my-variable

my_variable

if

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of print(5 + 3 * 2)?

16

11

13

10

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

  1. Which operator is used to get the remainder of a division in Python?

/

%

//

**

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will print(type(10.5)) output?

<class 'int'>

<class 'float'>

<class 'double'>

<class 'str'>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(10 // 3)?

3

3.33

3.0

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a numeric data type in Python?

int

float

complex

bool

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print(not (5 > 3))

False

Error

None

True

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?