
Big Idea 3 (Portion) Quiz
Authored by Danzel Umapas
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code segment.
x ← 25
y ← 50
z ← 75
x ← y
y ← z
z ← x
Which of the variables have the value 50 after executing the code segment?
Responses
x and z
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code segment.
red ← blue
blue ← yellow
red ← red
blue ← blue
What are the values of first and second as a result of executing the code segment?
blue and red
yellow
blue and red
no changes
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Assume that both lists and strings are indexed starting with index 1.
The list wordList has the following contents.
["abc", "def", "ghi", "jkl"]
Let myWord be the element at index 3 of wordList. Let myChar be the character at index 2 of myWord. What is the value of myChar?
i
h
f
e
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code segment.
firstList ← ["guitar", "drums", "bass"]
secondList ← ["flute", "violin"]
thirdList ← []
thirdList ← firstList
firstList ← secondList
secondList ← thirdList
What are the contents of secondList after the code segment is executed?
["flute", "violin", "guitar", "drums", "bass"]
["flute", "violin"]
["guitar", "drums", "bass"]
[]
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code segment. (see attached image)
What is displayed as a result of executing the code segment?
10 20 30 40
21 30 40 50
21 40 30 40
21 40 30 50
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment.
x = 23
z = x mod y
Which of the following initial values of the variable y would result in the variable z being set to 2 after the code segment is executed?
Responses
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following procedures for string manipulation.
(see attached image)
Which of the following code segments can be used to store "noon" in the string variable word ?
word ← "no"
word ← concat(reverse(word), word)
word ← "no"
word ← concat(reverse(word), reverse(word))
word ← "on"
word ← concat(reverse(word), word)
word ← "on"
word ← concat(reverse(word), reverse(word))
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
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
10 questions
Women in Tech by Sisters of Code
Quiz
•
9th - 12th Grade
11 questions
Test evaluation word SP3S1
Quiz
•
12th Grade
11 questions
Microsoft Word Office
Quiz
•
10th Grade - University
10 questions
JavaScript 3 baco med
Quiz
•
12th Grade
10 questions
IT Careers
Quiz
•
12th Grade
13 questions
Prueba Diagnostica de Tecnología
Quiz
•
6th Grade - University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade