python

python

University

19 Qs

quiz-placeholder

Similar activities

Python Part 1

Python Part 1

1st Grade - University

16 Qs

PYTHON PROGRAMMING Q4 FUNCTIONS

PYTHON PROGRAMMING Q4 FUNCTIONS

University

20 Qs

HCI 584 Python quiz

HCI 584 Python quiz

University

15 Qs

Python Quiz

Python Quiz

University

15 Qs

Java Methods

Java Methods

University

15 Qs

Python 101

Python 101

University

20 Qs

PYTHON FUNCTION

PYTHON FUNCTION

University

20 Qs

Python 101

Python 101

University

20 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?