University of Calicut Previous Years Question Paper & Answer

University : University of Calicut
Course : B.Sc

Semester : SEMESTER 2

Year : 2020

Term : APRIL

Branch : COMPUTER SCIENCE

Scheme : 2020 Full Time

Course Code : BCS 2B 02

Page:2





PDF Text (Beta):

16.
17.
18.
19.
` 20.
21.
22.

24.
25.

26.

27.
28.

2 C 81771

Part C
Answer any five questions.
Each question carries 5 marks.
Explain the different types of constants available in C.
How do variables and symbolic names differ ?
Write a program to find the average of n numbers.
Explain how operator precedence and associativity rules are applied.
Explain how goto statement is used for unconditional branching.
Write a program to find the roots of a quadratic equation.
Write a program to find the biggest of three numbers using nested if..else statement.
Explain entry controlled loop and exit controlled loop with flowchart and example.
45 x 5 = 25 marks)
Part D
Answer any three questions.
Each question carries 10 marks.
What are operators ? Explain different types of operators in C.

Explain the general form of switch statement. Write a program to find the grade of student using
switch statement.

Explain how string variables are declared and initialized ? Write a program to find whether the
inputting string is a palindrome or not.

Explain with an example how pointers are used with functions and structures ?

Explain the variable storage classes most relevant to function with examples.
(3 x 10 = 30 marks)

Similar Question Papers