You are on page 1of 2

CIE QUESTION PAPER UG

ಗ್ಲೋಬಲ್ ಅಕಾಡೆಮಿ ಆಫ್ ಟೆಕ್ನಾಲಜಿ, ಬೆಂಗಳೂರು


Global Academy of Technology , Bengaluru
Department of Computer Science &Engineering Internal Test No: 1

Date 0 6 1 1 2 3 Semester 1st USN

Subject
Name
C Programming (Integrated) Subject Code 2 2 C S E 1 4

Time:75 Mins Note: Answer all full questions. Max. Marks: 40

Q. No Question COs RBT Marks


Level
1 Explain the basic structure of the C program with an example. 22CSE14.1 L2 10
OR
2 Define tokens in C. Write and explain the different types of tokens 10
with examples. 22CSE14.1 L2

3 Write a C program to perform swapping of two numbers using i) 22CSE14.1 L3 10


Arithmetic operator ii) Bitwise operator iii) Using Temp variable
OR
4 Write a C program, and algorithm and draw a flowchart to compute 22CSE14.1 L3 10
simple interest.

5 Evaluate the following expressions in detail:


i) b= a++ + a++ + a++ where a=4
ii) a + = b * = c - =5 where a=3, b=5 and c=8 22CSE14.1 10
iii) int a= -1, b= -a ; res= (a>0)||(b>=0)&&(a>=0)||(b<=0) L3
iv) int i=4; res = i++ * i++ ;
v) int a=5,b= 10,c=5, res; res= a<b<c; print(“%d”, res);
OR
6 List the rules for naming a variable in C. Which of the following are 10
invalid variable names and why? 22CSE14.1 L3
Maximum first.name n1+n2 &name
double 3rd_row n$ Row1
Sum total doubles Col_total row_total

7 Write a C program to input 3 numbers and find the greatest among 10


them using a nested if-else statement. 22CSE14.2 L2
OR
8 Explain the working of if-statement and nested if-statement with 10
syntax and examples. 22CSE14.2 L2

COs and RBT Level

22CSE24.1 Describe the fundamentals of C programming Language.


21CSE32.2 Apply appropriate Control structures to solve problems.
21CSE32.3 Describe the concept of Arrays and Strings
21CSE32.4 Write User defined functions and apply concept of recursion and files to solve problems
21CSE32.5 Describe the concept of Pointers and Structures.
CIE QUESTION PAPER UG

ಗ್ಲೋಬಲ್ ಅಕಾಡೆಮಿ ಆಫ್ ಟೆಕ್ನಾಲಜಿ, ಬೆಂಗಳೂರು


Global Academy of Technology , Bengaluru
Department of Computer Science &Engineering Internal Test No: 1

Date 0 6 1 1 2 3 Semester 1st USN

Subject
Name
C Programming (Integrated) Subject Code 2 2 C S E 1 4

Time:75 Mins Note: Answer all full questions. Max. Marks: 40

Q. No Question COs RBT Marks


Level
1 Describe the process of compiling and running of C program. 22CSE14.1 L2 10
OR
2 Explain the character set of C language giving an example for each. 10
22CSE14.1 L2

3 Write a C program to perform swapping of two numbers using i) 22CSE14.1 L3 10


Arithmetic operator ii) Bitwise operator iii) Using Temp variable
OR
4 Write a C program, and algorithm and draw a flowchart to find the 22CSE14.1 L3 10
area and circumference of a circle.

5 Evaluate the following expressions in detail:


i) b=--a + a where a=5
ii) b= a++ + a++ + a++ where a=4 22CSE14.1 10
iii) 100%20<=20-5+100%10-20 L3
iv) res=x*x+2+x+1/2*x*x+x+1 where x=3.5
v) int i=6; res = i++ * i++ ;
vi) a + = b * = c - =5 where a=5, b=6 and c=7
OR
6 Convert the following Mathematical Expressions into C equivalent 10
22CSE14.1 L3
a) b)

7 Write a C program to input 3 numbers and find the greatest among 10


them using a nested if-else statement. 22CSE14.2 L2
OR
8 Explain the working of if-statement and nested if-statement with 10
syntax and examples. 22CSE14.2 L2

COs and RBT Level

22CSE24.1 Describe the fundamentals of C programming Language.


21CSE32.2 Apply appropriate Control structures to solve problems.
21CSE32.3 Describe the concept of Arrays and Strings
21CSE32.4 Write User defined functions and apply concept of recursion and files to solve problems
21CSE32.5 Describe the concept of Pointers and Structures.

You might also like