Name_______________________ Login___________________SID________

 

CS 010: Introduction to Computer Science I

Quiz 1: 8 minutes

 

  1. Secondary storage is substantially bigger and faster than primary storage.
    1. TRUE
    2. FALSE

 

  1. In C++, each statement must be on a separate line.
    1. TRUE
    2. FALSE

 

  1. Instructions encoded as numbers, is an example of
    1. assembly language
    2. high-level language
    3. machine language

 

  1. Choose the correct statement.

a.        A compiler translates one high-level program instruction at a time into machine code and immediately executes that code.

b.       Compilation is the process of translating a source program into an object program.

c.        A program written in a high-level language is called an object program.

d.       A program that consists of machine language instructions is called a source program.

 

  1. Computers are very systematic and can never guess.
    1. TRUE
    2. FALSE

 

  1. Planning out an algorithm to solve the required problem is the first step in programming.
    1. TRUE
    2. FALSE

 

  1. What kind of error causes a program to not be able to finish compiling?
    1. logic error
    2. operational error
    3. semantic error
    4. syntax error
    5. computational error

 

  1. The following shows what kind of error?

#include <iostream>

using namespace std;

int MAIN()

{

                cout << “This is my first test.\n”;

                return 0;

}

    1. compile-time error
    2. run-time error
    3. linking error
    4. object code error
    5. No errors