How To Exam?

a knowledge trading engine...


Lovely Professional University 2009 B.C.A Computer Application Mid Term,Basic Programming Skills - Question Paper

Friday, 25 January 2013 06:15Web

CSE100: Basic Programming Skills

Time Allowed: one hr 30 minn Max. Marks: 50


1. This paper contains 5 ques. on 2 pages.
2. ans all ques. in serial order.
3. the marksassigned to every ques. are shown at the end of every ques. insquare brackets.


Q one ans the subsequent ques. in short.

a) C is structured laanguage and middle level language! Comment?
b) Compare and contrast null statement and break statement?
c) Enumerate the data kinds available in C. discuss their format strings,range,memory occupied?
d) Compare and contrast the syntax errors,run time errors and linker errors?
e) Is do while exit controlled or entry controlled loop? Why?
[5*2=10]


Q two (a) Write a program to print the following?
1
one 1 2
one 1 two 3
one 1 two three 5
one 1 two three five eight

(b) draw flowchart to check whether number is palindrome (i.e. reverse of number is identical as number) ?
[2*5=10]


Q three (a) write a program to compute factorial of a number entered at runtime?
[1*6=6]

(b) Evaluate the subsequent expressions:-
1. a=(15/3)*2+5%3-(3-1)
2. a=++b *5+8/4%2 where b=7
[1*4=4]

Q four (a) write a program to display what time of the day it is?
[1*6=6]

(b) obtain errors in subsequent code? What will be the output after corrections?

#include
void main()
{
int a;
printf("enter the value of a");
scanf("%d",a);
i=1
while(i<=a)
printf("%d",(a*i));
i=i+1;
return 0;
}
[1*4=4]

Q five (a) Differentiate ranging from (using examples):-
1. Contrast variable and Volatile variable
2. For and Do while
[2*2=4]

(b) Analyze bitwise shift Operators?
[1*4=4]


(c) organize the subsequent operators in highest to lower priority:-
^,%,*,>>,~,||,&,--,+
[1*2=2]


( 1 Vote )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Lovely Professional University 2009 B.C.A Computer Application Mid Term,Basic Programming Skills - Question Paper