SYCS-135� Introductory Programming with C++

Quiz 1 - 9/2/99

 

Name:� ������ Answer Key��������������������������������������

 

1.� Name the six major components of a digital computer displayed below:

 

 

 

 

 

 

 

 

 

 

 

 


2.� Define the following terms.

 

Algorithm�������������������� __A_step_by_step_procedure_for_solving_a_problem______

����������������������������������� �in a finite amount of time.____________________________��������������������������������� ����������������������

 

SourceProgram���������� A program written in a high level programming language��������

����������������������������������� __________________________________________________

 

3.     Write down the output of the following program.

 

#include <iostream.h>

int main ()

{

cout<<�This is the first quiz�<< endl << endl << endl;

cout<<�How many lines will I print?�;

return 0;

}

 

OUTPUT:������ ��������� This is the first quiz������������������������������������������������������������������

������������������ ���������������������������������������������������������������������������������������������������������

������������������ ���������������������������������������������������������������������������������������������������������

������������������ ��������� How many lines will I print?������������������������������������������������������

������������������ ���������������������������������������������������������������������������������������������������������