Python_Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Muhusina Ismail
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
x=10
if x > =5:
print("x is greater than five!")
What error message you will get? Choose the correct answer.
None of the above
Syntax Error
Message
Indentation Error Message
All the above
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
My_Variable_Name = “John”
what kind of multi-word variable name is this? Choose the correct answer.
None of the above
Snake Case
Camel Case
Pascal Case
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Wadha wants to write a Python program. In the program, she needs to take the string value from the user. Can you help her to identify the correct syntax for getting the value from the user?
a) x=int(input("Enter the value"))
b) x=str(("Enter the value: "))
c) x=str(input("Enter the value"))
d) x=str(input())
a
b&d
c&d
b&c
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
y=30
z=20
if(y>z): print(“Y is greater than Z”)
This code is correct or not? Choose true if it is correct or choose false if it is not correct.
True
False
Not True
None of the above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A = B = C = "Apple"
print(A)
print(B,C)
What is the output of this program? Choose the correct option
None of the above
Apple Apple
Apple
Apple
Apple
Apple
Apple Apple
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
trunc() function is not used to eliminate the decimal part of the floating number and returns the Integer number without the decimal part.
None of the above
False
True
Not false
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given the value of y=3.4567890, you need to limit or set the precision of the floating-point value of y to 3 decimal points using the % operator and print the value of y. Choose the correct syntax?
None of the above
print("%.2f" %a)
print("%.3f" %a)
print(‘%.3f’ %a);
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Dictionary in Python

Quiz
•
11th - 12th Grade
9 questions
Python Basics

Quiz
•
6th - 12th Grade
9 questions
Python Basics Quiz for KS3

Quiz
•
11th Grade - University
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
10 questions
STRING MANIPULATION (PYTHON)

Quiz
•
11th - 12th Grade
10 questions
Python Boolean and If

Quiz
•
9th - 12th Grade
15 questions
Python revision

Quiz
•
10th Grade - University
10 questions
Python: Functions and Parameters

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University