Python Basics 201

Python Basics 201

University

50 Qs

quiz-placeholder

Similar activities

Python Programming - I B.Sc CS quiz

Python Programming - I B.Sc CS quiz

University

50 Qs

Quiz on SDGs, Entrepreneurship, and Python

Quiz on SDGs, Entrepreneurship, and Python

10th Grade - University

50 Qs

E-Quiz Competition I BCA

E-Quiz Competition I BCA

University

50 Qs

Databricks Certified Data Engineer Quiz part 2

Databricks Certified Data Engineer Quiz part 2

1st Grade - University

50 Qs

PHP Basics

PHP Basics

University

54 Qs

ITC 112 - Topic 1 Quiz

ITC 112 - Topic 1 Quiz

University

55 Qs

CA Test 2

CA Test 2

University

50 Qs

Computer Programming Function

Computer Programming Function

7th Grade - University

55 Qs

Python Basics 201

Python Basics 201

Assessment

Quiz

Computers

University

Medium

Created by

Rion Daneal

Used 6+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What function is used to take user input in Python?
input()
get()
read()
user()

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will the following code output? print(type(5.2))
int
float
str
bool

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result of the expression 3 + 4.5?
7
7.5
34.5
3.4

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a valid way to convert the string "42" to an integer?
int("42")
str(42)
float("42")
"42".toInt()

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does my_string[2:5] represent in Python?
Characters from 2nd to 5th
Characters from 2nd to 4th
Characters from 3rd to 6th
Characters from 3rd to 5th

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result of the expression 7 / 2 in Python?
3.5
3
4
3

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which operator is used for exponentiation (raise to power) in Python?

^
**
//
%

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?