Python Basics-Quiz-I

Python Basics-Quiz-I

University

15 Qs

quiz-placeholder

Similar activities

Go Quiz

Go Quiz

University

15 Qs

Artificial Neural Networks (Part 1- Part 3) Quiz

Artificial Neural Networks (Part 1- Part 3) Quiz

University

20 Qs

BugBlitz

BugBlitz

University

15 Qs

CODEBURST : JAVA EDITION

CODEBURST : JAVA EDITION

University

20 Qs

Quiz on Variables and Arithmetic Operations

Quiz on Variables and Arithmetic Operations

12th Grade - University

12 Qs

Code Sprint '25

Code Sprint '25

University

20 Qs

SEM-2(Python-Q1)

SEM-2(Python-Q1)

University

15 Qs

PPS QUIZZ 1

PPS QUIZZ 1

University

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