Python0524

Python0524

University

60 Qs

quiz-placeholder

Similar activities

VIRTUSA 2020 BATCH ( MODULE-1)

VIRTUSA 2020 BATCH ( MODULE-1)

University

60 Qs

Practice Quiz

Practice Quiz

University

60 Qs

Alpro

Alpro

University

65 Qs

PROG3 - Chapter 1

PROG3 - Chapter 1

University

64 Qs

Python CH1-3 Review

Python CH1-3 Review

8th Grade - Professional Development

59 Qs

QUIZ Pemrograman Python 1

QUIZ Pemrograman Python 1

University

60 Qs

Python Programming with modules

Python Programming with modules

University

61 Qs

Computer Programming Function

Computer Programming Function

7th Grade - University

55 Qs

Python0524

Python0524

Assessment

Quiz

Computers

University

Medium

Created by

Rion Daneal

Used 1+ times

FREE Resource

60 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

How do you extract characters from a string in Python?
extract()
slice()
get()
substring()

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

5.

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()

6.

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

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

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?