Input and Output Python

Input and Output Python

10th Grade

10 Qs

quiz-placeholder

Similar activities

النشاط الختامي لدرس جملة الإدخال

النشاط الختامي لدرس جملة الإدخال

10th Grade

7 Qs

Big Idea 3

Big Idea 3

9th - 12th Grade

15 Qs

Python Casting & Data Types

Python Casting & Data Types

9th - 12th Grade

11 Qs

Listas Python

Listas Python

10th Grade - University

10 Qs

COSC 1 Final

COSC 1 Final

9th - 10th Grade

15 Qs

Python

Python

6th Grade - University

15 Qs

Lớp 10: Câu hỏi TN củng cố kiến thức

Lớp 10: Câu hỏi TN củng cố kiến thức

10th Grade

10 Qs

Python Lists

Python Lists

10th Grade

14 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?