Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming Language Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following is considered a high-level programming language?

a)

Assembly

b)

Machine code

c)

C++

d)

Binary

2.

What is the main purpose of a programming language?

a)

To design websites

b)

To communicate with other programmers

c)

To give instructions to a computer

d)

To edit images

3.

What is an algorithm?

a)

A software application

b)

A graphical representation of a program

c)

A step-by-step procedure to solve a problem

d)

A type of data

4.

In a flowchart, which shape is used to represent a decision?

a)

Oval

b)

Rectangle

c)

Diamond

d)

Parallelogram

5.

Which of the following is a correct declaration of an integer variable in C?

a)

int x;

b)

integer x;

c)

num x;

d)

x int;

6.

What data type should be used to store a character in C?

a)

float

b)

char

c)

string

d)

int

7.

What does the printf() function do in C?

a)

Reads input from the user

b)

Outputs text to the screen

c)

Declares a variable

d)

None of the above

8.

Which of the following is the correct way to read an integer input using scanf in C?

a)

scanf("%d", x);

b)

scanf("%d", &x);

c)

scanf("%f", &x);

d)

scanf(x, "%d");

9.

Which keyword is used to declare a constant in C?

a)

static

b)

const

c)

define

d)

fixed

10.

What will be the result of the expression 5 + 2 * 3 in C?

a)

21

b)

11

c)

15

d)

13