Search Header Logo

CPS Unit 1

Authored by James Santiago

Computers

11th Grade

Used 2+ times

CPS Unit 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Abigail is writing a program and wants to add notes for future reference. Which of the following statements about comments is true?

They are necessary for the program to function

They are ignored by the program during execution

They are used to store program output

They are compiled into machine code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mia is learning programming and wants to write code that the computer can understand. What is the term for the rules she must follow?

The rules for how a programmer must write code for a computer to understand

The hardware components of a computer

The graphical interface of a software application

The process of debugging a program

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should the file name be for a public class named NeighborhoodRunner?

NeighborhoodRunner.java

neighborhoodrunner.java

Neighborhoodrunner.java

RunnerNeighborhood.java

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of a syntax error in a program?

The program fails to compile

The program runs with incorrect output

The program runs slower than expected

The program uses more memory

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Syntax errors can be identified by:

using a compiler or interpreter

writing comments in the code

running the program without saving

ignoring error messages

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a syntax error?

Missing semicolon

Infinite loop

Incorrect algorithm

Slow execution

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an attribute in object-oriented programming?

A function that performs an action

A characteristic of an object

A type of error in a program

A method to compile code

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?