Search Header Logo

Errors and Testing

Authored by Reid Bauermeister

Computers

12th Grade

Used 8+ times

Errors and Testing
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

52 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lexical Error Which of the following is an example of a lexical error?

Using uninitialized variables
Writing "pritn" instead of "print"
Dividing by zero
Forgetting a semicolon

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Spelling Error A spelling error occurs when:

A variable is used without being declared

You break the rules of keywords or identifiers

A variable type is mismatched
An identifier exceeds the character limit

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Too Many Characters A "Too Many Characters" error happens when:

The identifier is too long

Special characters are used incorrectly
A function exceeds the allowed line count
The program contains too many functions

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Illegal Characters Illegal characters are those that:

Are found in the wrong place in the code
Do not match the allowed symbols in the programming language
Cause division by zero
Are uninitialized variables

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Syntax Error Which of the following best describes a syntax error?

Using an undefined variable
Dividing by zero
Violating grammatical rules of a programming language
Incorrectly assigning data types

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Structural Errors What kind of error is classified as a structural error?

Incorrect arrangement of code elements
Using illegal characters
Declaring a variable without initializing it
Mismatch between function parameters

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Missing Brackets A missing bracket error occurs when:

A data type is mismatched
A function has no parameters
Parentheses or braces are not properly opened or closed
A loop is missing a condition

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?