Computer Programming Quiz

Computer Programming Quiz

University

20 Qs

quiz-placeholder

Similar activities

Primitive Types

Primitive Types

10th Grade - University

20 Qs

Electroblitz---Software

Electroblitz---Software

University

25 Qs

Programação em Python Introdução

Programação em Python Introdução

12th Grade - University

20 Qs

Orientation Quiz

Orientation Quiz

University

20 Qs

HIMSI Webinar Series 4

HIMSI Webinar Series 4

University

15 Qs

C Programming

C Programming

12th Grade - University

25 Qs

Basics of Programming with C

Basics of Programming with C

University

17 Qs

C Quiz

C Quiz

University

15 Qs

Computer Programming Quiz

Computer Programming Quiz

Assessment

Quiz

Other

University

Easy

Created by

Andrew Panares

Used 4+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?