Search Header Logo

Computer Programming Quiz

Authored by Nguyen Duong

Computers

University

Used 1+ times

Computer Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

42 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct sequence of steps for interacting with a computer program?

Execute, type command, wait for response

Type command, wait for response, execute

Wait for response, type command, execute

Type command, execute, wait for response

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in computer programming?

A fixed value that cannot be changed

An input device used to enter data into the computer

A type of loop used for repeating code

A named place in the memory to store data

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the rules for naming variables in computer programming?

Only letters are allowed, not numbers or underscores

Variable names are not case sensitive

It is allowed to start a variable name with a number

Variable names can include letters, numbers, or underscores, but must start with a letter or underscore

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a statement in computer programming?

A variable used to store data temporarily

A function that performs a specific task

A type of loop used for repeating code

A combination of operator and its operand(s), where the operator is a symbol indicating a calculation, and there is one or more operands

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following values represent a Boolean variable in computer programming?

int

char

float

TRUE

FALSE

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an integer variable in computer programming?

A variable used to store text data

A variable that can only hold a value of 0 or 1

A type of loop used for repeating code

A variable that can hold whole numbers

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type in computer programming is typically used to store decimal numbers with digits and exponents?

char

bool

double

float

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?

Discover more resources for Computers