  Now You can search anything in sharecodepoint using your voice. Click on mic button.  # CSE100 : Basic Programming Skills Mid Term Exam Question Paper | lpu

Course Code : CSE100: Basic Programming Skills

Question 1:
a) C is structured language 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]

Question 2:
(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]

Question 3:
(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]

Question 4:
(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]

Question 5:
(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]

#### Post a Comment

Version 23.2.3.4 - 2016 - 2019 - © Sharecodepoint | Made in India. | Copyright Content