Input and Output Python

Input and Output Python

10th Grade

10 Qs

quiz-placeholder

Similar activities

COSC 1 Final

COSC 1 Final

9th - 10th Grade

15 Qs

ICS Test #4 review

ICS Test #4 review

9th - 12th Grade

15 Qs

Python Quiz

Python Quiz

3rd Grade - Professional Development

11 Qs

IDT S1 Final Review Part 2

IDT S1 Final Review Part 2

8th - 12th Grade

10 Qs

Unit 3 Review

Unit 3 Review

9th - 12th Grade

11 Qs

AP CSP Python Quiz 1

AP CSP Python Quiz 1

10th - 12th Grade

11 Qs

Python: Functions and Parameters

Python: Functions and Parameters

9th - 12th Grade

10 Qs

N5 SDD - Python input and output

N5 SDD - Python input and output

7th - 11th Grade

12 Qs

Input and Output Python

Input and Output Python

Assessment

Quiz

Computers

10th Grade

Hard

Created by

JUSILDA VREKA

Used 7+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

  1. If mark is a variable that stores the mark scored by a student, what is the code to print the mark in the format,

“Your score is <mark>”


  1. print (“Your score is", mark)

  1. print ("Your score is" + mark)

  1. print ("Your score is" + int(mark))

  1. print ("Your score is" + str(mark))

2.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

  1. If total is a variable that stores a total of 5 numbers, what is the code to print the total in the format,

“The total of 5 numbers is <total>”

  1. print (“The total of 5 numbers is “+ int(total))

  1. print (“The total of 5 numbers is “+ float(total))

  1. print (“The total of 5 numbers is ", str(total))

  1. print ("The total of 5 numbers is "+ str(total))

3.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

  1. Which operator concatenates two strings?

  1. Operator ,

  1. Operator +

  1. Operator –

  1. Operator \

4.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

  1. What is the significance of adding end=“ “ at the end of a print statement?

  1. To print multiline strings.

  1. To print the next statement in the same line with a space in between them.

  1. To print statements in two different lines.

  1. To insert a tab character between two statements.

5.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Media Image
  1. Which of the following statements is used to print multiline strings as given.

  1. print('70% of Earth’s surface

is covered in

water’)


  1. print(“70% of Earth’s surface

is covered in

water”)

  1. print("""70% of Earth’s surface

is covered in

water""")

  1. print(“70% of Earth’s surface\

is covered in\

water”)

6.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

  1. If customerName = “Bob” and phoneNum = “0171983055”, what is the output when the statement print(customerName + phoneNum) is executed?

  1. Bob 0171983055

  1. Bob0171983055

  1. Bob+0171983055

  1. TypeError

7.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

Media Image
  1. he Python output when a print statement is executed is given. What is the correct print statement?

  1. print("\nA fact\n Earth's gravity\nis not\nuniform")


  1. print("\nA fact\n \nEarth's gravity\nis not\n\nuniform")

  1. print("\nA fact\n \nEarth's gravity\nis not\nuniform")

  1. print("A fact\n \nEarth's gravity\nis not\nuniform")

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?