python

python

University

19 Qs

quiz-placeholder

Similar activities

Quiz1_7A

Quiz1_7A

2nd Grade - Professional Development

20 Qs

Understanding Python Functions

Understanding Python Functions

University

20 Qs

Python 101

Python 101

University

15 Qs

Recuperacion final parte 1

Recuperacion final parte 1

8th Grade - University

20 Qs

Introduction To Python

Introduction To Python

University

20 Qs

Intro to Python Programming - Year 8

Intro to Python Programming - Year 8

8th Grade - University

20 Qs

Python L1

Python L1

8th Grade - University

14 Qs

Introduction to Python

Introduction to Python

University

15 Qs

python

python

Assessment

Quiz

Computers

University

Hard

Created by

zubair khan

Used 5+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

list

dict

tuple

tree

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does type casting mean in Python?

Converting a list into a dictionary

Assigning a type to a function

Converting a variable from one data type to another

Declaring variables with type annotations

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will print("Python"[1:4]) display?

yth

ytho

Pyt

ython

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the Boolean value of the expression 5 > 3 and 2 < 1?

True

False

1

None

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will print(10 // 3) gives output?

3.33

3

3.0

4

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the error in the above code snippet?

Indentation Error

Syntax Error

Name Error

Type Error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following methods can be used to remove an element from a list in Python?

list.remove()

list.delete()

list.pop()

Both A and C

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?