wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PPL 223 (QUIZ 1) Introduction to Programming Languages

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is a programming language?

a)

A set of rules for writing computer code

b)

A formal language comprising a set of instructions

c)

A system for managing databases

d)

A tool for designing user interfaces

2.

Which of the following is NOT a programming language paradigm?

a)

Procedural

b)

Object-Oriented

c)

Structural

d)

Functional

3.

Who developed the Java programming language?

a)

Microsoft

b)

Sun Microsystems

c)

Apple

d)

IBM

4.

What does "platform-independent" mean in the context of Java?

a)

Java can run on any operating system without modification

b)

Java requires a specific platform to run

c)

Java is only for mobile applications

d)

Java is dependent on the web platform

5.

Which programming language is known for its strong type system and immutability?

a)

C

b)

Java

c)

Haskell

d)

Prolog

6.

What is the primary use of the Prolog programming language?

a)

Web development

b)

System programming

c)

Artificial intelligence and computational linguistics

d)

Mobile app development

7.

Which of the following programming languages is procedural?

a)

Java

b)

C

c)

Haskell

d)

Prolog

8.

In what decade was the programming language Fortran developed?

a)

1940s

b)

1950s

c)

1960s

d)

1970s

9.

What does "object-oriented" mean in the context of programming languages?

a)

Focus on procedures to perform tasks

b)

Use of objects to represent data and methods

c)

Emphasis on mathematical functions

d)

Use of formal logic to express programs

10.

Which programming language is used primarily for Android app development?

a)

C

b)

Java

c)

Haskell

d)

Prolog

11.

What is the main characteristic of procedural programming languages?

a)

Use of objects to represent data

b)

Focus on procedures or routines to perform tasks

c)

Emphasis on immutability

d)

Use of logical assertions

12.

What does "write once, run anywhere" refer to in Java?

a)

Java programs can be written on any device

b)

Java programs can run on any device with a JVM

c)

Java programs need to be rewritten for each platform

d)

Java programs are only for web applications

13.

Which programming language category does C belong to?

a)

Procedural

b)

Object-Oriented

c)

Functional

d)

Logic

14.

What is the primary advantage of using object-oriented programming languages?

a)

Faster execution

b)

Better memory management

c)

Improved code reusability and maintainability

d)

Easier debugging

15.

Which of the following is NOT a key feature of Java?

a)

Platform-Independent

b)

Object-Oriented

c)

Manual Memory Management

d)

Automatic Garbage Collection

16.

Which language is known for being used in developing operating systems like Linux?

a)

C

b)

Java

c)

Haskell

d)

Prolog

17.

What is the role of a programming language in software development?

a)

It translates human intentions into machine-readable instructions

b)

It manages databases and storage

c)

It designs hardware components

d)

It serves as a graphical interface for users

18.

Which programming language emphasizes the use of mathematical functions and immutability?

a)

Java

b)

Prolog

c)

Haskell

d)

C

19.

Which programming language paradigm focuses on the use of formal logic to express programs?

a)

Procedural

b)

Object-Oriented

c)

Functional

d)

Logic

20.

What year was the programming language Java introduced to the public?

a)

1985

b)

1990

c)

1995

d)

2000