wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming Concepts Quiz

Total questions: 22

Worksheet time: 11mins

Name
Class
Date
1.

What are the basic concepts of programming?

a)

Data types, control structures, functions, and procedures

b)

Loops, conditions, variables, and constants

c)

Classes, objects, inheritance, and polymorphism

d)

Files, databases, networks, and protocols

2.

Which of the following are examples of language-specific data types?

a)

Arrays and Strings

b)

Tuples, Sets, and Dictionaries

c)

Integers and Booleans

d)

Classes and Objects

3.

What is the role of syntax in programming?

a)

To store data in memory

b)

To allow both programmer and compiler to understand the structure and components of a program

c)

To execute programs faster

d)

To provide security to the code

4.

What are the types of values that can be stored in a program?

a)

Functions and procedures

b)

Numbers, strings, and booleans

c)

Files and databases

d)

Classes and objects

5.

What are operators in programming languages?

a)

Special symbols or keywords used to perform operations on operands

b)

Functions that store data

c)

Variables that hold values

d)

Classes that define objects

6.

What are the properties of variables in programming?

a)

Name, type, value scope, lifetime

b)

Size, speed, efficiency, reliability

c)

Color, shape, texture, material

d)

Input, output, process, storage

7.

Which of the following are examples of basic data types?

a)

Integer, Boolean, Null

b)

Array, String, List

c)

Class, Object, Method

d)

File, Database, Network

8.

What is the purpose of assignment operators?

a)

To assign values to variables

b)

To compare two values

c)

To perform arithmetic operations

d)

To define classes

9.

What do arithmetic operators perform?

a)

Logical operations

b)

Arithmetic operations like addition, subtraction, multiplication, and division

c)

String manipulations

d)

File operations

10.

What are relational operators used for?

a)

Comparing two values

b)

Storing data

c)

Defining classes

d)

Accessing files

11.

An example of a type operator is:

a)

and, or

b)

is, as

c)

+, -

d)

if, else

12.

Logical Operators are used to:

a)

access members of objects

b)

perform bit-level operations

c)

combine two or more conditions

d)

define the structure of a language

13.

Data structure is important because it:

a)

defines the syntax of a language

b)

organizes, manages, and stores data efficiently

c)

performs operations on bits

d)

allows access to object members

14.

Bitwise Operators perform operations on:

a)

strings

b)

numbers

c)

bits

d)

classes

15.

Member Access Operators are used to:

a)

redefine operator behavior

b)

access members of objects or classes

c)

combine conditions

d)

store and retrieve values

16.

Operator Overloading allows you to:

a)

access object members

b)

redefine operator behavior for custom types

c)

perform bit-level operations

d)

combine conditions

17.

Every programming language has its:

a)

data types

b)

syntax

c)

variables

d)

operators

18.

Common data types include:

a)

Syntax, Operators, Variables

b)

String, Boolean, Numbers

c)

Classes, Structs, Interfaces

d)

Bits, Bytes, Words

19.

Basic data types are the building blocks of:

a)

syntax

b)

data manipulation

c)

bitwise operations

d)

member access

20.

Abstract Data Structures provide:

a)

syntax rules

b)

flexible ways to organize data

c)

bit-level operations

d)

member access

21.

A variable allows you to:

a)

perform bit-level operations

b)

store, retrieve, and manipulate values

c)

access object members

d)

combine conditions

22.

Basic Syntax is a set of rules that:

a)

define the structure of a language

b)

perform bit-level operations

c)

access object members

d)

combine conditions