Python Basics 201

Python Basics 201

University

50 Qs

quiz-placeholder

Similar activities

IT INFRA-MIDTERM EXAM

IT INFRA-MIDTERM EXAM

University

50 Qs

UH 1

UH 1

University

50 Qs

2nd C Programming Quiz

2nd C Programming Quiz

University

50 Qs

Microsoft Excels: Formulas and Functions

Microsoft Excels: Formulas and Functions

12th Grade - University

45 Qs

Tree dan Graph

Tree dan Graph

University

50 Qs

日本文学クイズ

日本文学クイズ

University

50 Qs

PKB - 6

PKB - 6

University

55 Qs

Davinci Resolve 17 Fusion 101

Davinci Resolve 17 Fusion 101

11th Grade - Professional Development

45 Qs

Python Basics 201

Python Basics 201

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Rion Daneal

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?

^
**
//
%

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers