Search Header Logo

Pseudocode Rules Quiz

Authored by Matthew Wemyss

Computers

11th Grade

Used 1+ times

Pseudocode Rules Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a constant in pseudocode?

MAX_TRIES CONSTANT = 5

CONSTANT MAX_TRIES <- 5

CONSTANT : MAX_TRIES = 5

DECLARE MAX_TRIES : CONSTANT = 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name according to the pseudocode rules?

student@name

student name

student-name

studentName

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the LENGTH function do in pseudocode?

Returns the number of characters in a string

Returns a substring of a string

Returns the first character of a string

Returns the last character of a string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for string concatenation in pseudocode?

&&

+

&

||

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are comments added in pseudocode?

// This is a comment

-- This is a comment

# This is a comment

/* This is a comment */

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a basic data type in pseudocode?

INTEGER

OBJECT

LIST

MAP

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the MID function in pseudocode?

Returns the middle character of a string

Returns the last character of a string

Returns the first character of a string

Returns a substring starting at a specified position

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?