Quiz 1 Flashcards

(10 cards)

1
Q

Which of the following is a logic programming language:

C++, Fortran, Prolog, or Scheme?

A

Prolog

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

begin
integer sum;
sum := 3 + 5;
print(sum);
end;
is a code written in ____________.

Algol, Machine Language, C++, or Assembly Language?

A

Algol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

LD R1, FIRST
is a code written in ____________.

Algol, Fortran, Machine Language, or Assembly Language?

A

Assembly Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Array is an example of control abstraction, T/F?

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following programming language is older than the others?

Java, Fortran, C, or Python?

A

Fortran

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Compiler executes a program directly line by line or statement by statement at runtime, T/F?

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following is a syntactic error:

Array out of bounds access, Uninitialized variable, Missing semicolon, or Incorrect return type?

A

Missing semicolon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following paradigm relies on higher-order functions?

Logic paradigm, Functional paradigm, or Object-oriented paradigm?

A

Functional paradigm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly