Comp Sci Unit 2 #4
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
Nick Nessralla
Used 11+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The variable age is to be used to represent a person’s age, in years. Which of the following is the most appropriate data type for age ?
Boolean
number
string
list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.
The code segment below is intended to swap the values of the variables first and second using a temporary variable, temp .
Which of the following can be used to replace <MISSING CODE> so that the code segment works as intended?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following program, which uses the variables start, end, and current.
What is displayed as a result of executing the program?
1 3
3 3
3 4
4 4
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Directions: For the question or incomplete statement below, two of the suggested answers are correct. For this question, you must select both correct choices to earn credit. No partial credit will be earned if only one correct choice is selected. Select the two that are best in each case.
Which of the following are benefits of using well-named variables in a computer program?
Select two answers.
The program will run faster.
The program will be easier for people to read.
The program will have a greater data storage capacity.
The program will be easier to modify in the future.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assume that the variables alpha and beta each are initialized with a numeric value. Which of the following code segments can be used to interchange the values of alpha and beta using the temporary variable temp ?
I and II only
I and III only
II and III only
I, II, and III
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment, which uses the variables r, s, and t.
r ← 1
s ← 2
t ← 3
r ← s
s ← t
DISPLAY (r)
DISPLAY (s)
What is displayed as a result of running the code segment?
1 1
1 2
2 3
3 2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The variable is Open is to be used to indicate whether or not a store is currently open. Which of the following is the most appropriate data type for is Open ?
Boolean
number
string
list
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
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
10 questions
PUNCTUATION SPACING RULES
Quiz
•
9th - 12th Grade
13 questions
Guess the Retro Computer 1
Quiz
•
KG - Professional Dev...
10 questions
Programming Constructs
Quiz
•
5th - 11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
