Filters
Question type

Study Flashcards

To assign a number to a variable, we use the _______ statement(s) .


A) increment
B) decrement
C) loop
D) decrement and loop

E) None of the above
F) All of the above

Correct Answer

verifed

verified

The _______ is the theoretical counterpart of the CPU.


A) disk
B) tape
C) controller
D) read/write head

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

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

E) A) and D)
F) All of the above

Correct Answer

verifed

verified

The _______ statement adds 1 to the variable.


A) increment
B) decrement
C) loop
D) complement

E) A) and D)
F) B) and D)

Correct Answer

verifed

verified

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

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

In a Turing machine, the _______ holds a sequence of characters.


A) disk
B) tape
C) controller
D) read/write head

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

The controller has _______ states.


A) three
B) four
C) a finite number of
D) an infinite number of

E) C) and D)
F) A) and D)

Correct Answer

verifed

verified

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

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

A

The _______ statement subtracts 1 from the variable.


A) increment
B) decrement
C) loop
D) complement

E) All of the above
F) A) and D)

Correct Answer

verifed

verified

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

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

We use _______ to denote a program's complexity.


A) the Turing number
B) big-O notation
C) factorials
D) the Simple Language

E) A) and C)
F) None of the above

Correct Answer

verifed

verified

B

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

E) All of the above
F) B) and D)

Correct Answer

verifed

verified

To clear a variable, we use the _______ statement(s) .


A) increment
B) decrement
C) loop
D) decrement and loop

E) All of the above
F) A) and C)

Correct Answer

verifed

verified

D

The _______ statement repeats one or more actions.


A) increment
B) decrement
C) loop
D) complement

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

Showing 1 - 14 of 14

Related Exams

Show Answer