
NOCTI Computer Science Practice Test 3
Authored by Micah Johnson
Computers
9th - 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
61 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first step in designing a solution to a programming problem?
Write the code immediately
Identify inputs, processes, and outputs
Run test cases
Debug the algorithm
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which tool is most commonly used to represent the flow of logic before coding?
Flowchart
Database
Binary Tree
Logic gate diagram
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In pseudocode, what does the keyword IF indicate?
Start of a loop
Start of a decision structure
Declaration of a variable
End of a program
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Why will this code not run?
there has to be a number in the variable
there are supposed to be no spaces in the variable label
there are no caps in variables
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
A short password protection program is being written.
The user enters “let me in” as the password but the program crashes.
Why does the program crash when the correct password is entered?
password is set to be entered as a real value while the password is a string
The password is too long
TRUE and FALSE have been mixed up
The password should be a real number
Answer explanation
The data types for the input and the password must be the same. Passwords are always stored as strings as they can contain a mix of keyboard symbols, letters and numbers.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Variable
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The next two questions use a robot in a grid of squares. The robot is represented as a triangle, which is initially facing up, towards the top of the grid. The robot is moved according to the instructions in the chart above.
Consider the following program which uses commands from the pseudocode described above.
REPEAT 4 TIMES {
MOVE_FORWARD()
MOVE_FORWARD()
MOVE_FORWARD()
ROTATE_RIGHT()
MOVE_FORWARD()
ROTATE_RIGHT()
MOVE_FORWARD()
ROTATE_RIGHT()
}
Which of the following images shows the path and ending location of the robot that will result from executing the code above. The starting location of the robot is shown as dotted triangle for cases where the robot does not start and end at the same location.
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
60 questions
PAT Informatika kls 7 Semester Genap 2024
Quiz
•
9th Grade
62 questions
CSP CMU Unit 2 - Student Created Questions
Quiz
•
9th - 12th Grade
57 questions
Career Management Obj 2.0
Quiz
•
9th - 12th Grade
62 questions
Computer Science Principles
Quiz
•
9th - 12th Grade
60 questions
مسابقة تقنية رقمية ٣ نظري+ عملي
Quiz
•
12th Grade
65 questions
Cisco IT Essentials Chapter 1 Test
Quiz
•
9th - 12th Grade
60 questions
Spreadsheet
Quiz
•
10th Grade
60 questions
CSD Unit 3 Review
Quiz
•
9th - 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