Search Header Logo

Computer Programming Quiz

Authored by Andrew Panares

Other

University

Used 4+ 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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

A type of operator

A fixed value in memory

A named storage location in memory that holds a value

A function that performs calculations

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid identifier?

char grade@;

double total amount;

float salary;

int 1stNumber;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does scope refer to in programming?

The speed of the program

The visibility or accessibility of a variable

The amount of memory used

The type of data stored

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of global scope?

int x = 10; // Global scope

void myFunction() { int y = 5; }

int z = 15; // Local scope

for(int i = 0; i < 10; i++) {}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data does 'int' store?

Strings

Integers

Single characters

Floating-point numbers

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for addition?

-

*

+

/

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the relational operator '>' do?

Checks if the left value is greater than the right value

Checks if two values are not equal

Assigns a value to a variable

Compares two values for equality

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?