JH-Coding Exam

Quiz
•
Computers
•
8th - 9th Grade
•
Medium
Standards-aligned
HS Mok
Used 2+ times
FREE Resource
9 questions
Show all answers
1.
OPEN ENDED QUESTION
10 mins • 1 pt
We have a TicTacToe game, assume each box has been marked 1-9. Assume if player array = [1,2,5,9], please write the statement to check if player contains 1,5,9 numbers. This is one of the statement inside is_winner() function. (Note: Only Press Enter if you finish write your answer completely)
Evaluate responses using AI:
OFF
Answer explanation
if ( ... )
Tags
function
2.
MULTIPLE SELECT QUESTION
10 mins • 1 pt
Select which items describe the get_index(x, y) function in the picture. (Answer more than 1)
(x,y) is the screen coordinate of the mouse event
This function will return the box index of coordinate (x,y)
get_index(60, 60) will return 3.
get_index(0, 0) return False
Tags
function
3.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Select the correct statements about function. (Answer more than 1)
Prevent duplicate of statements
Function can be reused for multiple times just by calling the name
Block of statements that perform a specific task
Function will be automatically run without calling the function name
Tags
function
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Select which statements are wrong.
If we click the screen 3 times, the sprite will forward for 150 steps
Variable x, y inside the mouse_click function is the mouse coordinate
screen.onkey is used to listen for mouse click
Every time we click the screen, function mouse_click will be run
Tags
function
turtle
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Select which items are correct about the code beside
my_array becomes [1,3,4,10]
my_array becomes [1,2,3,4,10]
my_array becomes [1,3,4]
my_array becomes[1,2,3,4]
Tags
array
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the elements of my_array ?
[1,2,3,4,5,6,7,8,9,10]
[0,2,4,6,8]
[1,3,5,7,9]
[0,2,4,6,8,10]
Tags
array
7.
MULTIPLE SELECT QUESTION
10 mins • 1 pt
Select the correct items. (Answer more than 1)
result is [1,2,2,3,4]
result is [1,2,3,4]
'in' operator is used to check if the array has specific value
'not in' is the opposite of 'in' operator
Tags
array
function
8.
OPEN ENDED QUESTION
10 mins • 1 pt
Write down a line of statement to insert the input data into array (my_array variable). Remember the data must be in integer. (Note: Only Press Enter if you finish write your answer completely)
Evaluate responses using AI:
OFF
Tags
array
9.
OPEN ENDED QUESTION
15 mins • 1 pt
I have a function1() but has some problems. The expected of function1(3) should be 1+2+3 = 6. But, this function1( ) return 2. How to fix this function ?
Evaluate responses using AI:
OFF
Answer explanation
You can try calling function1(3), function1(4), function1(5) to find the pattern or use the debugger tools in replit.
Tags
function
Similar Resources on Quizizz
12 questions
ICT Spreadsheets

Quiz
•
9th Grade
11 questions
Advanced Spreadsheet Functions Review

Quiz
•
8th Grade
10 questions
Programming - Arrays

Quiz
•
2nd - 12th Grade
10 questions
Introduction to Arrays

Quiz
•
KG - University
10 questions
Codemonkey quiz #2

Quiz
•
8th Grade
10 questions
Excel Ribbon

Quiz
•
6th - 12th Grade
10 questions
Quiz 4

Quiz
•
1st - 10th Grade
10 questions
Programming

Quiz
•
1st - 10th 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
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th 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