Input and Output Python

Input and Output Python

10th Grade

10 Qs

quiz-placeholder

Similar activities

Quiz 3-  Life Cycle of Program

Quiz 3- Life Cycle of Program

10th Grade

10 Qs

TIN 10 - LẦN 1 - STVB 1

TIN 10 - LẦN 1 - STVB 1

10th Grade

10 Qs

Networking

Networking

8th - 10th Grade

10 Qs

Word basics

Word basics

8th - 12th Grade

10 Qs

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

Bermain Gambar

Bermain Gambar

1st Grade - Professional Development

15 Qs

Computing figures

Computing figures

4th - 12th Grade

14 Qs

สอบเก็บคะแนน ไพทอน ม.4

สอบเก็บคะแนน ไพทอน ม.4

9th - 12th Grade

10 Qs

Input and Output Python

Input and Output Python

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

JUSILDA VREKA

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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