Quiz 1 Flashcards
(10 cards)
Which of the following is a logic programming language:
C++, Fortran, Prolog, or Scheme?
Prolog
begin
integer sum;
sum := 3 + 5;
print(sum);
end;
is a code written in ____________.
Algol, Machine Language, C++, or Assembly Language?
Algol
LD R1, FIRST
is a code written in ____________.
Algol, Fortran, Machine Language, or Assembly Language?
Assembly Language
Array is an example of control abstraction, T/F?
False
Which of the following programming language is older than the others?
Java, Fortran, C, or Python?
Fortran
Compiler executes a program directly line by line or statement by statement at runtime, T/F?
False
Which of the following is a syntactic error:
Array out of bounds access, Uninitialized variable, Missing semicolon, or Incorrect return type?
Missing semicolon
Which of the following paradigm relies on higher-order functions?
Logic paradigm, Functional paradigm, or Object-oriented paradigm?
Functional paradigm
The von Neumann architecture is a computer design model where a single memory stores both data and program instructions, and the CPU processes instructions sequentially by fetching them from this shared memory, T/F?
True
Syntactic sugar refers to syntax within a programming language that is designed to make code easier to read and write. It provides a more convenient or expressive way of performing common tasks, T/F?
True