How To Exam?

a knowledge trading engine...


SKR Engineering College 2007 B.E Computer Science COMPUTER PROGRAMMING - Question Paper

Wednesday, 06 February 2013 04:50Web

SKR ENGINEERING COLLEGE

MODEL ques. PAPER

Annual trend – 1st Year
(Regulation 2005)

GE1X02-COMPUTER PROGRAMMING
(Common to all Branches)

Time: 3 hours Maximum: 100 marks

PART A (10 X two = 20 marks)

1.What is meant by break statement and continue on statement.
2.Draw a flowchart to obtain the least of 2 numbers.
3.Define compiler, assembler and interpreter.
4.Write a C program to obtain the greatest of provided 10 numbers.
5.List out four functions of prototype.
6.What is the advantage of using register variables?
7.Give the syntax of the following:
(i) malloc()
(ii) calloc()
(iii) realloc()
(iv) free()
8.What is the difference ranging from structure and union?
9.What do PUSH and POP mean? describe underflow and overflow.
10.Define Stack and Queue.

PART B (5 X 16 = 80 marks)

11. a) i) explain about various services given by the internet (12)
ii) List the various categories of software. (4)
(or)
b) Write the algorithm and Draw flow chart for the subsequent
(i) To obtain the factorial of the provided number
(ii) To generate fibonacci series
(iii) To obtain the number is Armstrong or not
(iv) To obtain the roots of quadratic equation (16)


12.a)i) Write a C program to obtain the simple interest. Inputs are principal amount,
period in year and rate of interest (8)
ii) Write a program to compute the sum of remainders found by dividing
with modular division operation by two on one to nine numbers. (8)
(or)
b)i) discuss formatted and unformatted input output statement (8)
ii) Write a program to convert the year into seconds, minutes, hours, days and
months by using switch statement. (8)


13.a)i) discuss call by value and call by reference. (8)
ii) Write a program to perform matrix multiplication using call by value (8)
(or)
b)i) lustrate the principles of various storage classes in C. (12)
ii) Write a C program to obtain the factorial of a provided number using
recursion. (4)

14.a)i) describe command line argument with example. (8)
ii) Write a program to interchange the values stored in 2 variables using
functions with pointers. (8)
(or)
b)i) Write note on self referential structures. (4)
ii) Write a program to write data to a text file and to learn it. (12)

15.a) Write a program to perform the subsequent in linked list:
(i) Create
(ii) Insert front
(iii) Insert middle
(iv) Insert last (16)
(or)
b) Implement a queue so that every element of the queue holds a list of
integers. Write the functions add_Q and remove_Q for such a queue. (16)



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER SKR Engineering College 2007 B.E Computer Science COMPUTER PROGRAMMING - Question Paper