APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : S1 and S2

Year : 2019

Term : DECEMBER

Branch : BIOTECHNOLOGY

Scheme : 2015 Full Time

Course Code : CS 100

Page:1





PDF Text (Beta):

E3
Reg No.:

SECOND SEMESTER B.TECH DEGREE EXAMINATION(S), DECEMBER 2019

Max. Marks: 100

~) ०७ “~ ~>

8192003

Qa ரர அன்‌

(0131180 ४
Name ப்பி —

APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY

Course Code: CS100
Course Name: COMPUTER PROGRAMMING (CS, IT)

PARTA
Answer all questions, each carries2 or 3 marks.
What are identifiers? Give rules for declaring identifiers.

Explain with suitable examples, how & and * operators are used with pointer
variable.
What is the output of the program?

#include
int main()
{ int x=30, *y, *z;
y=&x; /* Assume address of x is 500 and integer is 4 byte size */
259;
ട്ടു

printf("x=%d, y=%d, z=%d\n", x, മ;
return 0;

}

Explain static storage class with an example.
Describe the three logical bitwise operators. What is the purpose of each?
What do you mean by opening of a file? How is this accomplished?

Compare the use of fread( ) and fwrite( ) functions with fscanf( ) and fprintf( )
functions.
Explain enum data type in C with example.

Define header files and give any two examples.

What is the value of ‘a’ after executing following code fragment? Justify your
answer.

int x=10;

یو

3
‏ہت‎ 4--;
Write a C program to find largest element in an array.

Differentiate Structure and Union.

Write a C program to swap the content of two variables using pointers.

How will you declare a pointer to a function? Write down the syntax and explain.
What is a masking operation? What is the purpose of each operand?

What is the significance of EOF?

Page 1 of 2

स __ 982

Duration: 3 Hours

Marks
(3)
(3)

(3)

(3)
(3)
(3)
(3)

(3)
(2)
(2)

(2)
(2)
(2)
(2)
(2)
(2)

Similar Question Papers