Semester : S1 and S2
Subject : Computer Programming
Year : 2017
Term : MAY
Branch : BIOTECHNOLOGY
Scheme : 2015 Full Time
Course Code : CS 100
Page:1
E3
B2E3002
Reg. No. Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
SECOND SEMESTER B.TECH DEGREE EXAMINATION, MAY 2017
Course Code: CS100
Course Name: COMPUTER PROGRAMMING (CS, IT)
Max. Marks: 100 Duration: 3 Hours
ಆ ಜಾ YN
PART A
Answer all Questions,
What are identifiers? Give the rules for forming identifiers in C. (3)
What do you mean by associativity? What is the associativity of unary operators?(2)
Explain the use of continue statement with the help of an example. (3)
What are library functions? (2)
What is the use of a function prototype? Give the function prototype of a function
accepting one float value and an integer array and return a float array. (3)
Write a function to compute the length of a string declared using a pointer
variable.(3)
How do you initialize a two dimensional array during declaration? (2)
What are enumerated data types? How ordinal values are assigned to its members?(3)
Explain the difference between *ptr++ and (*ptr)++ if ptr is pointing to the first
element of an integer array. (3)
. With an example, show how you can access the members of a structure variable
using a pointer to the variable. (2)
. Explain any three file opening modes? (2)
. How can you perform read and write operations on an unformatted data file? (3)
. Explain static storage class with the help of an example. (2)
. Explain the arguments passed to the main function as command line arguments. (3)
. What is a NULL pointer? (2)
. Explain the use of indirection operator with the help of an example. (2)
Page 1 of 2