Font size
WorksheetsIntro to Programming Languages Quiz 1
Total questions: 11
Worksheet time: 8mins
What are programming languages primarily designed for?
To create graphical user interfaces
To facilitate communication between humans
To instruct computers on how to perform specific tasks
To store data in databases
What is the primary characteristic of the first generation of programming languages?
Use of high-level abstractions
Directly understood by the computer's CPU
Focus on artificial intelligence
Object-oriented programming
Which of the following languages is an example of a second-generation programming language?
Java
Python
C++
Assembly Language
What distinguishes third-generation programming languages (3GL) from earlier generations?
They are written in machine code.
They use symbolic representations.
They are more abstract and easier for humans to read.
They focus exclusively on database management.
Fourth-generation programming languages (4GL) are primarily designed for which of the following purposes?
Writing low-level system code
Facilitating database management and reporting
Creating graphical user interfaces
Machine learning and artificial intelligence
What is the main focus of fifth-generation programming languages (5GL)?
Assembly language programming
High-performance computing
Artificial intelligence and problem-solving
Web development and scripting
Which of the following statements best describes Object-Oriented Programming (OOP)?
OOP relies on procedural programming techniques.
OOP emphasizes component reusability using objects that encapsulate data and procedures.
OOP focuses solely on data manipulation without the use of objects.
OOP is primarily concerned with memory management.
In OOP, what is the role of objects?
Objects are merely placeholders for memory storage.
Objects are units of information that contain data and methods to process and manipulate that data.
Objects can only represent numerical values.
Objects are restricted to being static and unchangeable.
What is a class in the context of Object-Oriented Programming?
A set of instructions for performing calculations.
A blueprint or template for creating objects.
A collection of unrelated functions.
A method of data encryption.
What does inheritance allow in Object-Oriented Programming?
It allows objects to be destroyed.
It allows a subclass to inherit properties and methods from a parent class.
It prevents methods from being overridden.
It restricts subclasses from accessing the parent class.
Give atleast 5 programming languages that you know.
