
COMP 1010 TEST 1

Quiz
•
Other
•
University
•
Hard
kidus tedla
Used 2+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following line of code
x = 5 + 8.0
int
float
str
Python is loosely typed, so we don't know.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the results of the following calculations?
9//2 9/2
4 & 4
4 & 4.5
4.5 & 4
none of the above
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What value is stored in x after the following line of code?
x = (4 + 2*4 - 3**2)//2
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What value is stored in z after the following code is run?
x = 10
y = 5
z = x/y + x*y - x
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What value will b have after the following code is run?
a = 5
b = 8
a = b
b = a
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
An import statement:
makes a collection of functions and/or constants available to us to use in our code.
copies data from one variable into another variable.
loads data from a data file.
should be located at the top of our program.
asks the user to enter input, and pauses our program until the input is received.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How should the blank in the following line of code be filled to print
one plus two is three
?
print("_______________".format(first = "one", second = "two", answer = "three"))
{"one"} plus {"two"} is {"three"}
{one} plus {two} is {three}
{"first"} plus {"second"} is {"answer"}
{first} plus {second} is {answer}
{1} plus {2} is {3}
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Practice python Questions!

Quiz
•
University
38 questions
Cuestionario sobre Listas en Python

Quiz
•
University
39 questions
Викторина без названия

Quiz
•
2nd Grade - University
40 questions
Computer Programming (Mid-term Exam)

Quiz
•
University
40 questions
Python Exam Section 1

Quiz
•
University
44 questions
tổng hợp kiến thức React

Quiz
•
University
40 questions
DST Quiz Bee

Quiz
•
University
37 questions
Identifying Instruments

Quiz
•
9th Grade - University
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