18 Questions
Which of the following is NOT considered a fundamental feature of a programming language?
Inheritance
Which of these programming language features is used to control the flow of execution in a program?
Control Structures
Which of the following is a common data type found in most programming languages?
Integer
Which of these programming language features allows developers to reuse pre-written code?
Libraries and Frameworks
Which of the following is a common mathematical operation that can be performed using programming language operators?
Addition
Which of these programming language features defines the structure and format of code?
Syntax
Which type of programming language follows a sequence of statements or commands to achieve a desired output?
Procedural programming languages
What is a key advantage of fifth-generation languages?
Machines can make decisions
Which type of language uses the concept of artificial intelligence to solve problems based on constraints?
5GL
What is a common disadvantage of procedural programming languages?
Complex and long code
Which type of language has poor control over hardware as a disadvantage?
3GL
What key aspect is utilized in fifth-generation languages to achieve real artificial intelligence?
Parallel Processing
In procedural programming languages, the order of execution is:
Determined by the programmer
Which of the following is a key characteristic of object-oriented programming languages?
Code reusability and scalability are prioritized
In functional programming languages, what is the primary focus?
The output of mathematical functions and evaluations
Which of the following programming languages is both procedural and object-oriented?
Java
In object-oriented programming, what are attributes and methods?
Data and program elements that compose objects
Which programming language type is most suitable for complex programs that require code reuse and scalability?
Object-oriented languages
Study Notes
Procedural Programming Languages
- Examples of procedural languages include C, C++, Java, Pascal, and BASIC.
- Procedural languages use a set of functions, instructions, and statements executed in a certain order to accomplish a task.
Object-Oriented Programming Languages
- Examples of object-oriented languages include Java, Python, PHP, C++, and Ruby.
- Object-oriented languages treat a program as a group of objects composed of data and program elements, known as attributes and methods.
Functional Programming Languages
- Examples of functional languages include SQL, Foxpro, and Focus.
- Functional languages focus on the output of mathematical functions and evaluations, with each function performing a specific task and returning a result.
Fifth Generation Languages
- Examples of fifth-generation languages include PROLOG and LISP.
- Fifth-generation languages are based on the concept of artificial intelligence and solve problems based on constraints, using parallel processing and superconductors.
Other Types of Languages
- Scripting languages, such as PHP, Ruby, Python, bash, and Perl, are used to automate repetitive tasks and manage dynamic web content.
- Logic programming languages, such as Prolog, Absys, Datalog, and Alma-0, express facts and rules to instruct the computer on how to make decisions.
Features of Programming Languages
- Syntax: the specific rules and structure used to write code in a programming language.
- Data Types: the type of values that can be stored in a program, such as numbers, strings, and booleans.
- Variables: named memory locations that can store values.
- Operators: symbols used to perform operations on values, such as addition, subtraction, and comparison.
- Control Structures: statements used to control the flow of a program, such as if-else statements, loops, and function calls.
- Libraries and Frameworks: collections of pre-written code used to perform common tasks and speed up development.
Test your knowledge on different types of programming languages by identifying popular functional, scripting, and logic programming languages. Learn about Scala, Erlang, Haskell, PHP, Python, and more.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free