0% found this document useful (0 votes)
32 views2 pages

Answer All Questions (10X2 20 Marks)

This document contains a model examination for a Computer Programming course with questions in three parts - Part A (10 questions with 2 marks each), Part B (5 questions with 6 marks each) and Part C (5 questions with 10 marks each). The questions cover topics related to C programming language like data types, operators, control structures, functions, arrays, pointers, structures, file handling etc. Students need to answer all questions in each part of the examination paper within the allotted time of 3 hours. The total marks for the examination is 100.

Uploaded by

david joseph
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views2 pages

Answer All Questions (10X2 20 Marks)

This document contains a model examination for a Computer Programming course with questions in three parts - Part A (10 questions with 2 marks each), Part B (5 questions with 6 marks each) and Part C (5 questions with 10 marks each). The questions cover topics related to C programming language like data types, operators, control structures, functions, arrays, pointers, structures, file handling etc. Students need to answer all questions in each part of the examination paper within the allotted time of 3 hours. The total marks for the examination is 100.

Uploaded by

david joseph
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

HINDUSTAN INSTITUTE OF TECHNOLOGY AND SCIENCE

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


MODEL EXAMINATION NOVEMBER 2016
CSA101 - Computer Programming
TIME: 3.00 hrs
DATE: MAX.MARKS:100
Answer All Questions(10X2=20 marks):
1. ______function in C converts ascii to integer.
2. Convert the following:
a. Binary to Decimal: 1101101.
3. What does diamond symbol is flowchart means?
4. What is a compiler?
5. Convert the following expression into C expression:
A= 3x2 + 2x + 1.
6. Write the purpose of switch statement?
7. List the types of storage classes in C.
8. How do you initialize arrays in C?
9. Explain how free() function is applied?
10. What is a Pointer?

PART-B
Answer All Questions (5X6=30 marks)
11.A. Explain the components and purpose of a computer system
Or
B. Convert the binary number (01101011)2 to hexadecimal number.
Convert the hexadecimal number (A6B4)16 to octal number.
12.A.Write an algorithm for finding the area of a circle
Or
B. Enlist the features of a good programming language
13.A. Write a ‘C’ program to divide two numbers and find the reminder
Or
B. Compare with suitable examples the Control Statements and the looping
Statements.
14.A. Write a ‘C’ program to swap two numbers using call by value method
Or
B. Explain the use of following String functions
1. Strlen() 2.Strcpy() 3.strcat() 4.strcmp 5.gets()
15.A. Write the use of functions malloc() and realloc()
Or
B. Explain what you understand from the following three lines
int* x;
int a=10;
x=&a;
PART-C
Answer All Questions (5X10=50 marks)
16.a Describe the Organization of computer with block Diagram in
detail.(16)
(OR)
Explain in detail about the booting process
17. a Describe algorithmic problem solving approach in brief.(16)
(OR)
b. Draw a flowchart to verify whether the student has passed in the subject
c.
18. a .Write a C Program to print the grade for the marks obtained.(10)
(OR)
b. Compare the three Loop control structures used in C with examples. (10)

19 .a. Write a C Program to add to matrices of order m x n. (10)


(OR)
b. Write a C program to check whether the string is Palindrome (10)

20. a. Write a C Program to create student details using structures. (10)


(OR)
b. List and explain the various file handling functions available in C with
example. (10)

___________________________________________________________________

You might also like