INPUT AND OUTPUT PYTHON QUIZ BY AL-NAHDA INNOVATIVE ACADEMY

INPUT AND OUTPUT PYTHON QUIZ BY AL-NAHDA INNOVATIVE ACADEMY

1st - 5th Grade

6 Qs

quiz-placeholder

Similar activities

Dog facts

Dog facts

1st - 9th Grade

9 Qs

Fundamental Day - Safety - Set 2

Fundamental Day - Safety - Set 2

4th Grade

9 Qs

Reading of the vernier caliper

Reading of the vernier caliper

1st - 2nd Grade

7 Qs

Fisika Radioterapi: Produksi Sinar-X

Fisika Radioterapi: Produksi Sinar-X

2nd Grade

6 Qs

teoría de exponentes

teoría de exponentes

4th Grade

6 Qs

Soal AKM Literasi Kelas 5

Soal AKM Literasi Kelas 5

5th Grade

5 Qs

TC Regional Kaltim SMD-BPP

TC Regional Kaltim SMD-BPP

1st Grade - Professional Development

10 Qs

Electrical Conductors & insulaors

Electrical Conductors & insulaors

5th - 6th Grade

10 Qs

INPUT AND OUTPUT PYTHON QUIZ BY AL-NAHDA INNOVATIVE ACADEMY

INPUT AND OUTPUT PYTHON QUIZ BY AL-NAHDA INNOVATIVE ACADEMY

Assessment

Quiz

Physics

1st - 5th Grade

Hard

Created by

elijah achiek

Used 4+ times

FREE Resource

AI

Enhance your content

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

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 5 pts

Find the output of the below python code:

print("GFG ")

print("Hello")

Compilation Error 

GFGHello

GFG Hello 

GFG 
Hello 

2.

MULTIPLE CHOICE QUESTION

5 mins • 5 pts

Find the output of the below python code, for x=5 and y= 5

x = input()

y = input()

print(x+5)

10 


5

0

Compilation Error 

3.

MULTIPLE CHOICE QUESTION

5 mins • 5 pts

Find the output of the below python code, for x=1.5

x = int(input())

print(x)

1

1.5

Raises ValueError

Compilation Error 

4.

MULTIPLE CHOICE QUESTION

5 mins • 5 pts

Find the output of the below python code for x=2

x = float(input())

print(x)

  • 2.0

  • 2

  • Compilation Error 

  • None of the above

5.

MULTIPLE CHOICE QUESTION

5 mins • 5 pts

What will happen if a user enters a non-numeric value in the following code?

age = int(input("Enter your age: "))

print("You are", age, "years old")

  • It will print the age as a string.

  • It will convert the input to a string and print.

  • It will raise a ValueError.

  • It will print "You are 0 years old".

6.

MULTIPLE CHOICE QUESTION

5 mins • 5 pts

Which of the following statements is used to display a user-inputted message followed by a new line?

  • print(input("Enter message: "))

  • input(print("Enter message: "))

  • print("Enter message: " + input())

  • print("Enter message: ", input())