Eccq 1214 :Computer Science Question Paper
Eccq 1214 :Computer Science
Course:Civil Engineering
Institution: Technical University Of Kenya question papers
Exam Year:2013/2014
Answer all questions.
1.Distinguish between runtime and logical errors (4marks)
2.Describe any ten escape code key/sequence character keys (5marks)
3.Identify the errors in the following code segment: (4marks)
Int main ()
{
Cout<<”enter two numbers”;
Cin>>num>>auto;
Float area =length*breadth;
4.Distinguish between float and Boolean constants (4marks)
5.If B=9 and that A=B++, what are the new values of A and B respectively (2marks)
6.Derive a program to calculate the volume of a sphere and a cuboid depending on user’s choice (6marks)
7.Using a c++ code, generate a program that computes the sum of the first 200 natural numbers (5marks)
8.Generate a simple code to compute the factorial of an integer variable (5marks)
More Question Papers
Exams With Marking Schemes