
PC4.8-PC4.9 CSC403 T2
Authored by Shukria Arshe
Computers
9th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct Swift playground statement that is used to assign a new variable with the name total and initialize it to 5?
create total = 5
var total = 5
declare total = 5
variable total = 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the value of variable Time2 after executing the code segment below?
0
7
13
20
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following refers to the value of variable count after executing the code fragment above?
1
3
5
6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following conditions makes the character collect exactly five gems in the code segment below?
counter>4
counter>5
counter>7
counter>10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
.
Which of the following is false?
You cannot declare the same variable name more than once within a block,
You cannot declare the same variable name more than once within a block, even if a block contains other blocks.
A class’s instance variables override locally declared variables with the same names that are declared within the class’s methods.
A variable ceases to exist, or goes out of scope, at the end of the block in which it is declared.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable whose scope is located to the program, it can be used and updated by any part of the code. this scope is typically derived from the variable being declared (created) outside of any function, object, or method
Global Variable
Small Variable
Limited Variable
wideVariable
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable with a scope is one that can only be seen, used and updated by code within the same scope. Typically this means the variable was declared (created) inside a function -- includes function parameter variables.
Global Variable
Local Variable
Limited Variable
wideVariable
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
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
8 questions
Overview of IT
Quiz
•
6th Grade - University
10 questions
What is a computer?
Quiz
•
7th - 9th Grade
10 questions
Innovations of Technology
Quiz
•
7th - 10th Grade
11 questions
Maintaining Hand Tools- CSS 9
Quiz
•
9th Grade
10 questions
Activity 1: How well do you know Java?
Quiz
•
9th Grade
10 questions
Adobe Animate Symbols
Quiz
•
9th Grade
10 questions
NHTW Programming
Quiz
•
9th 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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade