0% found this document useful (0 votes)
11 views

Final Term C Programming2080

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Final Term C Programming2080

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Symbol No.: ……............

Final EXAMINATION 6. Use of functions


2080 (2024) a) Helps to avoid repeating a set of statements many times
PROGRAMMING PRINCIPAL & CONCEPT IN C LANGUAGE b) Enhance the logical clarity of the program
Class: 9 “Engineering” Time: 15 mins F.M.: 9 c) Makes debugging task easier.
Group ‘A’ (MCQs) d) All of the above
Tick the best alternative. 9 ×1=9 7. Any C program
1. C program always consist a function a) Must contain at least one function c) Needs to input data
a) printf() c) scanf() b) Need not contain any function d) None of the above
b) main() d) none
2. The elements of array are always stored in memory location 8. Which of the following is address operator in pointer in C?
a) Random c) sequential a) % c)&
b) Random and sequential d) None b) # d) *

3. Key word is used to declare structure 9. Before using pointer it should be .


a) INT c) struct a) Declared c) Initialized
b) dstructure d) suct b) Declared & Initialized d) None

4. Array variable is capable of storing


a) Multiple value of different data type c) Single value
b) Multiple value with similar data type d) None

5. What will be the output of following sniped code?

a) 5 c) 6
b) 9 d) None
Symbol No.: ……............
~ THE END ~
Final EXAMINATION
2080 (2024)
PROGRAMMING PRINCIPLE & CONCEPT IN C LANGUAGE
 Candidates are required to give their answers in their own words as far
as practicable.
Class: 9 “Engineering” Time: 1:45 hrs F.M.: 9 + 41
Group ‘B’ (Subjective)
Give short answer to the following questions. 5 ×5=25
1. Define Language Translator? Write differences between compiler
and interpreter.
2. Write short definition of following terms in c Programming. 5x1=5
i) Data types ii) Array iii) Structure
iv) Union v) Pointer
3. Define else if statements. Write a program to find greatest number
among three different numbers.
4. What is operator in C? Write a program in c to convert meter into
centimetre.
5. What is loop? Write a program in c find reverse of any number
given by user.
Group ‘C’
Give long answer to the following question. 2 ×8=16
1. Write a program following program using function. 2x4=8
a) To find perimeter of circle use return type with argument
function type.
b) Find volume of cylinder use no return type with no argument
function type.
2. a) Write a program in c to display 10 different numbers given by users 4
b) Write a program in C by defining the structure type struct
personal that would contain personal name, date of joining and
salary. Program will read the information of one person and display
them 4

You might also like