Fall Semester Exam Review (Units 1, 2)
Flashcard
•
Computers
•
12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

13 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Enter the name of the variable used in the following code.
Back
color
Answer explanation
Explanation: Variables are used to store values. In general, you can recognize a variable as a word that is written in code without quotes (that is not a special keyword).
2.
FLASHCARD QUESTION
Front
An argument is... (circle one)
Back
Information passed to a function to make it work, Located inside the parentheses in a function call, Expected to be a specific data type based on the function being used, All of the above
Answer explanation
Explanation: Arguments are values that you pass to a function. Most functions expect a specific number of arguments, and a specific type for each argument, which can be found in accompanying documentation.
3.
FLASHCARD QUESTION
Front
What action is the + operator performing in the following code?
max = int(input("Enter the maximum value: "))
min = int(max / 2)
print("For a minimum we will use: " + str(min))
Back
Concatentation
Answer explanation
Explanation: The + operator can be used to perform addition when placed between two numbers, or concatenation when placed between two strings.
4.
FLASHCARD QUESTION
Front
What will be the output of this program? print("Goodbye") print("Moon")
Back
Two lines reading Goodbye and Moon
5.
FLASHCARD QUESTION
Front
What value is in the variable `x` after this code runs?
x = 0
y = 10
if x == y:
x = 100
Back
0
Answer explanation
Explanation: In this case the answer to 'are x and y equal?' is False, and so the line inside the if-statement will not run, meaning x will stay the same.
6.
FLASHCARD QUESTION
Front
Which of the following is NOT true about conditions? They are boolean expressions, They always produce the value True or False, You can only have one condition per conditional
, They come between the keyword and colon in a conditional clause
Back
You can only have one condition per conditional
Answer explanation
Explanation: The condition is the part of the if-statement or other conditional clause that asks a yes-or-no question. For a conditional with multiple clauses, each clause will have its own condition, except for `else`.
7.
FLASHCARD QUESTION
Front
What value is in the variable `y` after this code runs?
Back
100
Answer explanation
Explanation: A nested conditional is only tested if the outer conditional is True. In this case, x is less than y, so the first condition is True. Then we check the inner conditional. x is NOT less than 0, so we skip the block of the inner conditional, and the final value of y is 100.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
AP Biology Genetics Flashcard
Flashcard
•
12th Grade - University
10 questions
Disney descendants flashcard
Flashcard
•
KG
10 questions
SUP E3 - PART 1
Flashcard
•
University
11 questions
Genetic Engineering Concepts
Flashcard
•
11th Grade - University
12 questions
Present perfect Vs past tense
Flashcard
•
University
5 questions
Elements of Argumentative Essay
Flashcard
•
12th Grade
10 questions
Python basics
Flashcard
•
University
15 questions
Parts of speech: general review
Flashcard
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
8 questions
Veterans Day Quiz
Quiz
•
12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
23 questions
Similar Figures
Quiz
•
9th - 12th Grade