Types of Programming Paradigms Quiz

EfficaciousCognition avatar
EfficaciousCognition
·
·
Download

Start Quiz

Study Flashcards

16 Questions

In which level of programming language is Assembly language classified?

Low-level language

Which type of programming languages are closer to human language?

High-level languages

What is the purpose of an Interpreter in programming?

Execute programs line-by-line & convert source code to machine code

Which type of programming language is suitable for system programming and application programming?

Mid-level language

What is the primary function of a Compiler in programming?

Compile source code into executable instructions

Which programming language is best suited for generating menu-driven customer billing systems?

C#

Which type of language uses mnemonic codes for instructions?

Assembly language (Low-level)

What distinguishes high-level languages from low-level languages?

'Closeness' to human language

'FORTRAN' and 'Pascal' are examples of which kind of programming languages?

'High-Level' languages

Which stage of compiling a C program involves the removal of comments and expansion of macros?

Preprocessing

In structured programming, why is it easier to understand code?

Through top-down design and clear module hierarchy

Which control structure is used for repetitive execution in programming?

LOOP

Which type of programming emphasizes a disciplined approach and top-down design?

Structured Programming

What is the primary focus of high-level languages compared to low-level languages?

Algorithmic implementation

Which level of programming languages is known for using mnemonic codes for instructions?

Assembly language

Which type of programming involves the development of user-defined data types and operations on these types?

Object-Oriented Programming

Study Notes

Programming Fundamentals

  • Programming: a series of instructions to a computer to accomplish a task
  • Instructions must be written in a way the computer can understand
  • Programming languages are used to write programs

Types of Programming Languages

  • High-Level Languages: closer to human language, examples: C#, FORTRAN, PASCAL, PROLOG, JAVA.NET
  • Mid-Level Languages: bind the gap between machine level language and high-level languages, examples: C, C++
  • Low-Level Languages: deal with hardware registers by name, example: Assembly Language
  • Machine Language: the lowest-level programming language, executed directly by a computer's CPU, example: "0110101100101000"

Structured Programming

  • A disciplined approach to programming
  • Top-down design: a program is divided into a main module and its related modules, each module is divided into sub-modules
  • Advantages:
    • Easier to understand code
    • Easier to test and debug code
    • Easier to modify and maintain code
    • Easier to work with others on large programs
  • 4 Control Structures:
    • Sequence
    • Selection
    • Iteration
    • Module

Programming Stages

  • The Four Stages of Compiling a C Program:
    • Preprocessing: removal of comments, expansion of macros, expansion of included files
    • Compilation: compilation of source code into executable instructions
    • Assembly: conversion of assembly language's source code into machine language
    • Linking: linking of object files into an executable program

Interpreters, Compilers, and Assemblers

  • Interpreter: converts source code into machine code, usually on a step-by-step basis, example: BASIC
  • Compiler: compiles source code into executable instructions, example: C compiler
  • Assembler: converts assembly language's source code into machine language, example: GNU assembler

Test your knowledge on various programming paradigms including Structured Programming, Object-Oriented Programming, Logic/Declarative Programming, and Functional/Applicative Programming. Learn about the key concepts and characteristics of each paradigm.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Programming Paradigms Quiz
3 questions

Programming Paradigms Quiz

SignificantForethought avatar
SignificantForethought
Structured Programming Paradigm Quiz
5 questions
Use Quizgecko on...
Browser
Browser