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
10 questions
Entrepreneurship

Flashcard
•
9th - 12th Grade
15 questions
Computer parts of speech

Flashcard
•
11th Grade - University
14 questions
What makes a computer a computer?

Flashcard
•
9th - 11th Grade
17 questions
Computing Components

Flashcard
•
9th Grade - University
10 questions
CS 14 Vocab

Flashcard
•
KG
6 questions
Python -- Inputs

Flashcard
•
9th - 12th Grade
10 questions
Algebra WoW Week 1

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

Flashcard
•
KG - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade