Mastering Python Input and Output

Mastering Python Input and Output

Professional Development

10 Qs

quiz-placeholder

Similar activities

Ultrasonic

Ultrasonic

Professional Development

15 Qs

CodeHS - Intro to Python - Conditionals Quiz

CodeHS - Intro to Python - Conditionals Quiz

9th Grade - Professional Development

15 Qs

PythonDia2

PythonDia2

Professional Development

10 Qs

Computer Quiz

Computer Quiz

5th Grade - Professional Development

8 Qs

Python 145

Python 145

4th Grade - Professional Development

11 Qs

Conceitos Python

Conceitos Python

Professional Development

10 Qs

Basics of Programming

Basics of Programming

Professional Development

9 Qs

DeFacto Python Day 2

DeFacto Python Day 2

Professional Development

8 Qs

Mastering Python Input and Output

Mastering Python Input and Output

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Poornimha Jayabal

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to take user input in Python?

get_input()

input()

scan()

read()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you store the value obtained from input() in a variable?

store input in variable_name()

variable_name : input()

variable_name = input()

input = variable_name

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default data type of the value returned by input()?

integer

list

boolean

string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you convert the input from a string to an integer?

Apply float() in Python or number() in JavaScript.

Use int() in Python or parseInt() in JavaScript.

Use str() in Python or convertToInt() in JavaScript.

Use parseFloat() in Python or toInteger() in JavaScript.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to display output to the console in Python?

print()

display()

show()

output()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you print multiple items in one print() statement?

Call print() multiple times for each item separately.

Use print(item1, item2, item3) to print multiple items.

Use print([item1, item2, item3]) to print items as a list.

Use print(item1 + item2 + item3) to concatenate items.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword can be used to end a print statement without a newline?

end=' '

end='\t'

end='\n'

end=''

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?