How To Exam?

a knowledge trading engine...


Punjab Engineering College 2010 B.E Computer Science Mid-term ta101 introduction to computing - Question Paper

Monday, 28 January 2013 09:40Web



PEC UNIVERSITY OF TECHNOLOGY

First Mid Semester examination        . *

Introduction to Commiting(TA-lOl) w

_1st YearCAeronautical, Civil, Production. Metallurgy. Mechanical) _30. Total Time= 1 hr

%

Note:-All Questions are compulsory.    *    f

1.    Differentiate between a while and a do while loop.    (2)

2.    Can there be more if statements than else in a program. Also tell, can there be more else than if statements in a program. Discuss both situations taking suitable example.    (3)

3.    How algorithm and flowchart help in software development? Design a flowchart for finding sum of digits of a number entered by user.    (5)

4.    Evaluate X in all the following cases

a.    X = B /' 2 + B * 4 / B - B + C / 3;

(X is a FLOAT variable, B = 3, C =3.5)

b.    X - I * A / 2 + 3 / 2 * A + 2 + T;

(X is an INT variable, I = 4.5, A - 1.2, T = 3.5)

c.    X = Q*A/4-6/2 + 2/3*6/G;    (5) (X is an INT variable, Q = 5, A = 2.5, G = 1)

d.    X = 1 / 3 * A i 4 - 6 / 2 + 2 / 3 * 6 / G;

(X is an INI variable, A ~ 6. G ~ 5)

a. X -~~b'~c~d;

&

(x is an INT, bz=10,cr-'2,d~5)

5.    Write a program that takes as input length and width of a rectangular yard (in feet) and the length and width of the rectangular house situated in the yard (in feet). Your program should compute the time required to cut the grass at the rate of two square feet a second    *    (5)

6.    Write a menu driven program that finds addition, subtraction, square, square root, factorial (only one operation is to be carried out) of the data entered by user. (Ask required number of operands).    (5)

7.    True or false

a)C    is case in-sensitive language.

b)C"    is not space sensitive language.

c)    In C . a-t -) means a=a+l.    (5)

d)Haidware    Programming can be done in C.

e)C    is a machine level language.

r








Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Punjab Engineering College 2010 B.E Computer Science Mid-term ta101 introduction to computing - Question Paper