Python Basics-Quiz-I

Python Basics-Quiz-I

University

15 Qs

quiz-placeholder

Similar activities

NumPy

NumPy

University

16 Qs

Lesson 3 PLC Characteristics and Input/Output Devices

Lesson 3 PLC Characteristics and Input/Output Devices

University

13 Qs

Mastering Python Concepts

Mastering Python Concepts

University

19 Qs

Lesson 2 Instrumentation Signal Terminology

Lesson 2 Instrumentation Signal Terminology

University

15 Qs

NEXUS'25

NEXUS'25

University

20 Qs

AVINYA 2K25

AVINYA 2K25

University

19 Qs

Python

Python

University

10 Qs

GDG Code Team Selection Test – Code & Logic Edition

GDG Code Team Selection Test – Code & Logic Edition

University

10 Qs

Python Basics-Quiz-I

Python Basics-Quiz-I

Assessment

Quiz

Engineering

University

Hard

Created by

kris hna

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(2 ** 3)?
5
6
8
9

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of len([1, 2, 3])?
2
3
4
Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a function in Python?
function
define
def
fun

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'break' statement do in Python?
Skips the current iteration
Ends the current loop
Restarts the loop
Does nothing

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(type(5))?
<class 'str'>
<class 'int'>
<class 'float'>
<class 'bool'>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a mutable data type in Python?
tuple
str
list
int

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?