Deck 17: Theory of Computation

Full screen (f)
exit full mode
Question
The _______ is the theoretical counterpart of the CPU.

A) disk
B) tape
C) controller
D) read/write head
Use Space or
up arrow
down arrow
to flip the card.
Question
The complexity of a problem is O (log10 n) and the computer executes 1 million instructions per second. How long does it take to run the program if the number of operations is 10,000?

A) 1 microsecond
B) 2 microseconds
C) 3 microseconds
D) 4 microseconds
Question
The _______ statement repeats one or more actions.

A) increment
B) decrement
C) loop
D) complement
Question
We use _______ to denote a program's complexity.

A) the Turing number
B) big-O notation
C) factorials
D) the Simple Language
Question
A Turing machine has these components: _______.

A) tape, memory, and read/write head
B) disk, controller, and read/write head
C) tape, controller, and read/write head
D) disk, memory, and controller
Question
The _______ statement subtracts 1 from the variable.

A) increment
B) decrement
C) loop
D) complement
Question
A _______ shows, among other things, the movement of the read/write head, the character read, and the character written.

A) diagram
B) flowchart
C) transition table
D) Turing machine
Question
The _______ statement adds 1 to the variable.

A) increment
B) decrement
C) loop
D) complement
Question
To assign a number to a variable, we use the _______ statement(s).

A) increment
B) decrement
C) loop
D) decrement and loop
Question
To copy the value of one variable to another, we use the ____ statement(s).

A) increment
B) decrement
C) loop
D) increment, decrement, and loop
Question
In a Turing machine, the _______ holds a sequence of characters.

A) disk
B) tape
C) controller
D) read/write head
Question
A _______ is a pictorial representation of the states and their relationships to each other.

A) transition diagram
B) flowchart
C) transition table
D) Turing machine
Question
The controller has _______ states.

A) three
B) four
C) a finite number of
D) an infinite number of
Question
To clear a variable, we use the _______ statement(s).

A) increment
B) decrement
C) loop
D) decrement and loop
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/14
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 17: Theory of Computation
1
The _______ is the theoretical counterpart of the CPU.

A) disk
B) tape
C) controller
D) read/write head
C
2
The complexity of a problem is O (log10 n) and the computer executes 1 million instructions per second. How long does it take to run the program if the number of operations is 10,000?

A) 1 microsecond
B) 2 microseconds
C) 3 microseconds
D) 4 microseconds
D
3
The _______ statement repeats one or more actions.

A) increment
B) decrement
C) loop
D) complement
C
4
We use _______ to denote a program's complexity.

A) the Turing number
B) big-O notation
C) factorials
D) the Simple Language
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
5
A Turing machine has these components: _______.

A) tape, memory, and read/write head
B) disk, controller, and read/write head
C) tape, controller, and read/write head
D) disk, memory, and controller
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
6
The _______ statement subtracts 1 from the variable.

A) increment
B) decrement
C) loop
D) complement
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
7
A _______ shows, among other things, the movement of the read/write head, the character read, and the character written.

A) diagram
B) flowchart
C) transition table
D) Turing machine
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
8
The _______ statement adds 1 to the variable.

A) increment
B) decrement
C) loop
D) complement
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
9
To assign a number to a variable, we use the _______ statement(s).

A) increment
B) decrement
C) loop
D) decrement and loop
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
10
To copy the value of one variable to another, we use the ____ statement(s).

A) increment
B) decrement
C) loop
D) increment, decrement, and loop
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
11
In a Turing machine, the _______ holds a sequence of characters.

A) disk
B) tape
C) controller
D) read/write head
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
12
A _______ is a pictorial representation of the states and their relationships to each other.

A) transition diagram
B) flowchart
C) transition table
D) Turing machine
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
13
The controller has _______ states.

A) three
B) four
C) a finite number of
D) an infinite number of
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
14
To clear a variable, we use the _______ statement(s).

A) increment
B) decrement
C) loop
D) decrement and loop
Unlock Deck
Unlock for access to all 14 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 14 flashcards in this deck.