Consider the above. What are the values of first and second as a result of executing the code segment?
Programming Day 1

Quiz
•
Computers
•
10th - 12th Grade
•
Hard
Richard Jr.
Used 68+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The value of first is true, and the value of second is true.
The value of first is true, and the value of second is false.
The value of first is false, and the value of second is true.
The value of first is false, and the value of second is false.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A teacher is writing a code segment that will use variables to represent a student’s name and whether or not the student is currently absent. Which of the following variables are most appropriate for the code segment?
A string variable named s and a Boolean variable named a
A string variable named s and a numeric variable named n
A string variable named studentName and a Boolean variable named isAbsent
A string variable named studentName and a numeric variable named numAbsences
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The variable isOpen 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 isOpen ?
Boolean
number
string
list
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following code segments can be used to interchange the values of the variables num1 and num2 ?
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the above code segment.
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?
1
2
3
4
Similar Resources on Quizizz
10 questions
MIT App Inventor Basics

Quiz
•
9th - 12th Grade
10 questions
Comp Sci Unit 2 #4

Quiz
•
11th Grade
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
10 questions
Pseudocode Input

Quiz
•
9th - 12th Grade
10 questions
Python Variables

Quiz
•
7th - 12th Grade
10 questions
Intro to Python

Quiz
•
KG - University
10 questions
Python Quiz for 10s

Quiz
•
10th Grade
10 questions
Unit 4 Advanced AP CSP

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University