Search Header Logo

NOCTI Computer Science Practice Test 3

Authored by Micah Johnson

Computers

9th - 12th Grade

Used 1+ times

NOCTI Computer Science Practice Test 3
AI

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

Media Image

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

Media Image

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

An extra piece of information that you pass to the function to customize it for a specific need.
The common programming structure that implements "conditional statements".
 Attributes that describe an object's characteristics
 A placeholder for a piece of information that can change.

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

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.

Media Image
Media Image
Media Image
Media Image
Media Image

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?