Python - Unit Test 2

Flashcard
•
Computers
•
9th Grade
•
Hard
Wayground 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
15 questions
Safety Signs Practice #1

Flashcard
•
9th - 12th Grade
10 questions
Vocabulary Flashcards

Flashcard
•
9th - 12th Grade
10 questions
Community Access Words (1-10)

Flashcard
•
KG
15 questions
Terminator - Poetry

Flashcard
•
9th - 12th Grade
8 questions
CS Discoveries: Unit 1 Flashcard

Flashcard
•
KG - University
12 questions
Economics MI K-12 SS Econ 1.1 Vocab Flashcard

Flashcard
•
9th - 12th Grade
10 questions
Indefinite Pronouns

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

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade