Zoe Cayetano
Quiz by , created more than 1 year ago

Quiz on CSE 100: Principles of Programming with C++ Midterm Exam 1, created by Zoe Cayetano on 13/02/2016.

235
2
0
Zoe Cayetano
Created by Zoe Cayetano over 8 years ago
Close

CSE 100: Principles of Programming with C++ Midterm Exam 1

Question 1 of 16

1

Fill the blank space to complete the text.

When a program runs on a computer, the part of the computer that carries out the instructions is called the .

Explanation

Question 2 of 16

1

Fill the blank space to complete the text.

When a program runs on a computer, it is stored in the .

Explanation

Question 3 of 16

1

Fill the blank space to complete the text.

Monitors, printers, and status lights are all examples of devices.

Explanation

Question 4 of 16

1

Fill the blank space to complete the text.

Mice, trackpads, keyboards, scanners, and joysticks are all examples of devices.

Explanation

Question 5 of 16

1

Fill the blank space to complete the text.

When a program is not running, it is stored in a/an .

Explanation

Question 6 of 16

1

Fill the blank space to complete the text.

Flash drives, CDs, and external disks are all examples of storage (memory) devices.

Explanation

Question 7 of 16

1

Fill the blank space to complete the text.

At each step of its operation, the input to a central processing unit is a/an .

Explanation

Question 8 of 16

1

Fill the blank space to complete the text.

A is a binary digit, like 0 or 1.

Explanation

Question 9 of 16

1

Fill the blank space to complete the text.

A byte in memory is identified by a unique number called its .

Explanation

Question 10 of 16

1

Fill the blank space to complete the text.

In modern computer systems, a byte consists of bits.

Explanation

Question 11 of 16

1

RAM, random-access memory, is called that because

Select one of the following:

  • it is optimized for random number processing.

  • accesses are randomized to prevent clogging the control lines.

  • you can pick any two random locations and it will take the same time to access the data.

  • when power is turned off, its contents are lost and replaced by random bits.

  • none of the above.

Explanation

Question 12 of 16

1

When a program is not running, it is stored

Select one of the following:

  • on a disk.

  • in a level-2 cache (L2).

  • in main memory.

  • on the ethernet or wifi.

Explanation

Question 13 of 16

1

An operating system

Select one of the following:

  • is the chief hardware unit in a computer.

  • is loaded into the computer each time it needs to carry out an operation.

  • ensures that programs will not run on the computer at the same time.

  • allocates resources like memory to programs that are running.

  • all of the above.

Explanation

Question 14 of 16

1

What best defines a "programming language"?

Select one of the following:

  • It allows us to control a computer.

  • It allows us to make a calculation.

  • It allows us to execute a program.

  • It allows us to express an algorithm.

Explanation

Question 15 of 16

1

Which of these is not a programming language?

Select one of the following:

  • C

  • C++

  • HTML

  • Java

Explanation

Question 16 of 16

1

Which of the following is not true?

Select one of the following:

  • An algorithm allows ambiguity.

  • An algorithm, when carried out, must eventually stop.

  • An algorithm can be carried out by a human being.

Explanation