0% found this document useful (0 votes)
19 views

Programming For Problem Solving (22CS102001)

C program

Uploaded by

priyaswapna3645
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Programming For Problem Solving (22CS102001)

C program

Uploaded by

priyaswapna3645
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

EMBU MOHAN EABU

MOHAN BABUUNIVERSITY
Sree Sainath Nagar, Tirupati 517 102
B.Tech ISemester (MBU22) CIAT-I Examinations, November, 020
(22CS102001) PROGRAMMING FOR PROBLEM SOLVING
(Commnon to: AIML)
Max. Marks: 50
Time: 90 Minutes Date: 24.11.2023 (FN)

PART-A
Answer Ail Questions. Al Questions Carry Equal Marks 10x2=20 Marks
Question BL CO
1, a) List primary data types.
L1 CO1
b} Define what a keyword is and list any three. L1 CO1
c) Differentiate compile time and Runtime initialization of variables. L2 CO1

d) List three categories of Operators. L1 CO1


List all formatted I/0 functions. L1 CO1
Define control statements and its types. L1 CO2
gWrite any two differences between break and continue. L2 CO2
h) What is infinite ioop. L1 CO2
Write the purpose of flowchart. L2 CO2
Write the syntax of switch case with an example. L2 CO2

PART-B
Answer One Question from each set. AlI Questions Carry Equal
Marks 2 x 15=30 Marks

No. Question Marks BL Co

Set-I
2. a) Differerntiate implicit and explicit type conversions. 7 Marks L2 CO1
b) Write aC program to evaiuate the following expressions: 8 Marks L3 CO1
i) ax5 + bx3 + c
ii) (ax t b)/(ax - b)
OR

3. Design an algorithm to print first N Fibonacci terms. 7 Marks L2 C01


by What is variable? Give the rules for variable declaration. 8 Marks L2 CO1
Set-II

4. a) Explain the conditional statements of C language. 8 Marks L2 CO2


at write a C program to find the largest among three given numbers. 7 Marks L3 CO2
OR
5. a) Write a Cprogram tO print the reverse of a given
number.
7 MarkS
b) Write a C program to display the sumof first 'n' natural L3 CO2
numbers 8Marks L3 CO2
****

You might also like