
COMP 1010 TEST 1
Authored by kidus tedla
Other
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
38 questions
CRI 198 - Long Quiz (BSCRIM2)
Quiz
•
University
35 questions
Introduction to Organizational Theory
Quiz
•
University
35 questions
2025-26-1S-AISF1-CORE1-MQ6
Quiz
•
University
45 questions
Review Exam Day 2
Quiz
•
University
35 questions
Premier League Quiz 2023-2024
Quiz
•
12th Grade - University
40 questions
REVIEWER Q1 APPETIZERS
Quiz
•
9th Grade - University
35 questions
Examination of Introduction to Information Technology
Quiz
•
University
35 questions
What Logo Is This?
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University