
Programming Day 1
Authored by Richard Jr.
Computers
10th - 12th Grade
Used 69+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the above. What are the values of first and second as a result of executing the code segment?
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
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
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Microcontroller
Quiz
•
11th Grade - University
10 questions
Network
Quiz
•
10th - 11th Grade
10 questions
ZOOM QUIZ
Quiz
•
1st - 12th Grade
10 questions
Interactive Media
Quiz
•
10th - 11th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade