Python - Unit Test 2

Flashcard
•
Computers
•
9th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

13 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following correctly allows for the input of "Integers"? Options: ex = input("Enter something: "), ex =int(input("Enter something: ")), ex = Integers(input("Enter something: ")), ex = float(input("Enter something: ")), ex = decimals(input("Enter something: "))
Back
ex =int(input("Enter something: "))
2.
FLASHCARD QUESTION
Front
Which of the following is not a data type of Python? char, int, float, str, complex
Back
char
3.
FLASHCARD QUESTION
Front
Which of the following outputs would generate a "syntax" error? Options: print(5.0 + 2), print(5.0 - 2), print(5.0 # 2), print(5.0% 2), print(5.0 * 2)
Back
print(5.0 # 2)
4.
FLASHCARD QUESTION
Front
Given the following program. If the user inputs: 5 and 4, what output would be generated? Options: 9, 20, 54, Syntax Error, Runtime Error
Back
54
5.
FLASHCARD QUESTION
Front
Given the following program. If the user inputs: 5 and 4, what output would be generated? Options: 9, 20, 54, Syntax Error, Runtime Error
Back
9
6.
FLASHCARD QUESTION
Front
Which of the following correctly allows for the input of "Decimals"? Options: ex = input("Enter something: "), ex =int( input("Enter something: ")), ex = Integers(input("Enter something: ")), ex = float(input("Enter something: ")), ex = decimals(input("Enter something: "))
Back
ex = float(input("Enter something: "))
7.
FLASHCARD QUESTION
Front
Which of the following correctly allows for the input of "Strings"? Options: ex = input("Enter something: "), ex =int( input("Enter something: ")), ex = Integers(input("Enter something: ")), ex = float(input("Enter something: ")), ex = decimals(input("Enter something: "))
Back
ex = input("Enter something: ")
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
USING CONTEXT CLUES IN READING

Flashcard
•
9th - 12th Grade
13 questions
Python variables, expressions, and data types

Flashcard
•
9th - 12th Grade
12 questions
CS Python Fundamentals Unit 4 Review

Flashcard
•
9th - 12th Grade
12 questions
Shazam

Flashcard
•
KG
12 questions
CSP-A114 Flashcard

Flashcard
•
9th - 12th Grade
12 questions
Computer Hardware

Flashcard
•
9th - 12th Grade
9 questions
CompTIA A+ 1.2, 1.3 - Mobile Devices

Flashcard
•
9th - 12th Grade
11 questions
Preterit vs Imperfect

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade