Intro to CS Midterm Exam

Flashcard
•
Computers
•
12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

19 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following will correctly output:
I know there's a proverb which that says
"To err is human,"
but
a human error is nothing to what a computer
can do if it tries.
― Agatha Christie
Note: This is a direct quote from Agatha Christie's novel, Hallowe'en Party. The grammar shown here is as it is written in the novel.
Back
quote = "\"To err is human,\""
print("I know there's a proverb which that says \n" + quote + "\nbut")
print("a human error is nothing to what a computer")
print("can do if it tries.\n\n- Agatha Christie")
2.
FLASHCARD QUESTION
Front
The symbol used to create a comment is:
Back
#
3.
FLASHCARD QUESTION
Front
Consider the following code:
print("computer" + "science")
What is output?
Back
computerscience
4.
FLASHCARD QUESTION
Front
Consider the following code:
x = input("What year is it?")
print(x)
The value stored in x is:
Back
a String
5.
FLASHCARD QUESTION
Front
Which of the following correctly inputs two numbers and print the sum? Options: n1 = input("Enter a number: ") n2 = input("Enter a number: ") print("The answer is: " + int(n1+n2)), n1 = input("Enter a number: ") n2 = input("Enter a number: ") print("The answer is: " + str(n1+n2)), n1 = int(input("Enter a number: ")) n2 = int(input("Enter a number: ")) print("The answer is: " + int(n1+n2)), n1 = int(input("Enter a number: ")) n2 = int(input("Enter a number: ")) print("The answer is: " + str(n1+n2))
Back
n1 = int(input("Enter a number: ")) n2 = int(input("Enter a number: ")) print("The answer is: " + str(n1+n2))
6.
FLASHCARD QUESTION
Front
Consider the following code:
x = "apple"
y = x
z = "banana"
print(x + " " + y + "\n" + z)
What is output?
Back
apple apple
banana
7.
FLASHCARD QUESTION
Front
What happens if the user types in A when executing the code: x = int(input("Enter a number: "))
print (x)?
Back
This would cause an error: an integer variable cannot store a string.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Reflection, Refraction, Snell's Law Practice

Flashcard
•
11th Grade
15 questions
AP Statistics - Unit 1

Flashcard
•
11th Grade - University
15 questions
6.1-6.3 Practice - Confidence Intervals for Proportions

Flashcard
•
12th Grade
15 questions
Practice: Permutations and Combinations

Flashcard
•
11th Grade
15 questions
Permutations and Combinations

Flashcard
•
10th - 12th Grade
14 questions
4.3 - Measuring Populations and Biodiversity

Flashcard
•
12th Grade
15 questions
AP Stats Chapter 10

Flashcard
•
11th - 12th Grade
15 questions
Reflection, Refraction, Snell's Law Practice

Flashcard
•
11th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University