What is the difference between a binary operator and a unary operator?
Basic Python Console Operations

Quiz
•
Computers
•
10th Grade - University
•
Medium

Nathan Denton
Used 18+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A computer can use binary operators, but it cannot use unary operators.
A unary operator needs two things, while a binary operator only needs one.
A binary operator needs two things, while a unary operator only needs one.
Binary operators are used for arithmetic expressions, while unary operators are for strings.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
On which line of code will Python error?
weight = input("How much do you weigh? ")
oz_water = weight / 2
print "You should drink " + str(oz_water)
print "ounces of water every day if you weigh " + weight
Line 1
Line 2
Line 3
Line 4
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In what order should these statements be executed in order to get input from the user and print out the result?
A) response = input("Do you like cheese? ")
B) print "You have chosen " + confirm
C) print "You responded " + response
D) confirm = input("Are you sure? ")
A, B, C, D
B, C, A, D
A, C, D, B
C, B, A, D
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following program? Assume the user enters "Florence", then "Fernandez".
first_name = input("What is your first name? ")
last_name = input("What is your last name? ")
whole_name = first_name + last_name
print whole_name
Fernandez Florence
Florence
Fernandez
FlorenceFernandez
Florence Fernandez
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements is true about print statements?
I. In order to print a string literal, the string must be enclosed in quotes.
II. Each print statement will be printed on its own line.
III. Print statements will not let you print strings and numbers in the same statement.
IV. Print statements are how you display text on the screen.
I, IV
II, III
I, II, IV
I, III, IV
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following choices is a properly formed Python variable name, meaning it is both legal in the Python language and considered good style?
user_age
uSeRaGe
user!age!
1user_age
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following choices is NOT a Python variable type?
int
str
float
number
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Python Strings

Quiz
•
University
20 questions
Unit 5 TEST

Quiz
•
11th - 12th Grade
16 questions
Python есептер 1

Quiz
•
9th - 12th Grade
20 questions
Python - Iteration (For Loops)

Quiz
•
10th Grade
22 questions
CodeHS AP CSP Unit 3 Review

Quiz
•
11th - 12th Grade
17 questions
"switch" Java Statement - 1

Quiz
•
9th - 10th Grade
19 questions
Unit 3 Python Minor assessment

Quiz
•
10th - 12th Grade
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
67 questions
Course Recap Ptho May25

Quiz
•
University
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade
6 questions
Railroad Operations and Classifications Quiz

Quiz
•
University