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

Subject - Programming Max Marks: 100 Time: 3 Hrs PART A: Answer Each Question by Choosing Either (A) or (B) 5 X 10 50 Marks

This document outlines the structure and content of a programming exam with 100 total marks. It is divided into 4 parts: Part A asks 5 multiple choice questions worth 10 marks each, focusing on C programming concepts like arrays, functions, strings, pointers, files, and compiler directives. Part B asks short answer questions, requiring candidates to answer 9 out of 17 questions worth 3 marks each, covering additional C topics like keywords, operators, comparisons, data types and more. Part C is 20 single mark multiple choice questions testing fundamental C knowledge such as compilers, features, variables, control flow, I/O functions and pointers. Part D is a single 3 mark question requiring short notes on command line arguments

Uploaded by

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

Subject - Programming Max Marks: 100 Time: 3 Hrs PART A: Answer Each Question by Choosing Either (A) or (B) 5 X 10 50 Marks

This document outlines the structure and content of a programming exam with 100 total marks. It is divided into 4 parts: Part A asks 5 multiple choice questions worth 10 marks each, focusing on C programming concepts like arrays, functions, strings, pointers, files, and compiler directives. Part B asks short answer questions, requiring candidates to answer 9 out of 17 questions worth 3 marks each, covering additional C topics like keywords, operators, comparisons, data types and more. Part C is 20 single mark multiple choice questions testing fundamental C knowledge such as compilers, features, variables, control flow, I/O functions and pointers. Part D is a single 3 mark question requiring short notes on command line arguments

Uploaded by

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

SUBJECT –PROGRAMMING

MAX MARKS: 100 TIME: 3 HRS

PART A: Answer each question by choosing either (a) or (b) 5 x 10 = 50 Marks


1. a How will you create, compile and execute a C program?
(Or)
b. Explain in detail about unformatted input and output statements in C?

2. a How will you declare, initialize and assign a one-dimensional array?


(Or)
b. Explain ‘for’ loop in C with example

3. a Explain in detail about Arrays within Structures?


(Or)
b. Explain about declaring and defining user defined functions?

4. a Write a C program to concatenate two strings using pointers?


(Or)
b. Explain in detail about i)malloc() ii)calloc() iii)free()

5. a Define File? How will you open and close a file in C?


(Or)
b. Explain about compiler control directives with example?

PART B: Answer any 9 Questions 9 x 3 = 27 Marks


6. List out any six keywords in C?
7. State Type Qualifiers.
8. List out any three special operators in C?
9. Write any three comparison between break and continue statements?
10. Write short note on external storage class?
11. How will you declare string variables in C?
12. Write short notes on strcat()?
13. Write the need of user defined functions?
14. Write the comparison between structure and array?
15. State call by reference?
16. Write about NULL pointer?
17. Define Pointer.
18. Write about file inclusion?
19. Write short notes on macro substitution with arguments?

PART C: Answer any 20 Questions 20 x 1 = 20 Marks


20.What is Compiler?
21.List down any one C compilers?
22.Write any one features of C?
23.What is the use of global variable?
24.What is the file extension of a C program?
25.What is branching statements?
26.List any one branching statements?
27.Write the syntax of if construct?
28.Write the syntax of continue statement?
29.Write the use of goto statement?
30.List any one console i/o library functions in C?
31.List any one character oriented library functions in C?
32.Write the use of strlen()?
33.Write the syntax of strlen()?
34.Write the syntax of strcmp()?
35.What is a pointer value?
36.What is an address?
37.Write the syntax of declaring pointers in C?
38.What is pointer variable?
39.Which are the operators exclusively used with pointers?
40.Write the syntax of defining a file?
41.Write any one mode in opening a file?
42.Write the syntax of opening a file?
43.Write the example for closing a file?
44.What is the use of fopen()?

PART D: Compulsory Question 1x 3 = 3 Marks


45. Write short notes on command line arguments?

****************************

You might also like