Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
Class Test a) 5 c) 6
a) Class: 9 “Engineering” Time:40 mins F.M.: 20 b) 9 d) None
Which of the following in not a data type? i) INT ii) Float iii) Hari iv) char b) Which of the following is not a keyword in C? 6. Use of functions i) INT ii) rem iii) if iv) for c) Which of the following variable is valid variable? a) Helps to avoid repeating a set of statements many times i) 1 ram ii) double iii) sita123 iv) for b) Enhance the logical clarity of the program c) Makes debugging task easier. d) All of the above Group ‘A’ (MCQs) 7. Any C program Tick the best alternative. 9 ×1=9 a) Must contain at least one function c) Needs to input data 1. C program always consist a function b) Need not contain any function d) None of the above a) printf() c) scanf() b) main() d) none 8. Which of the following is address operator in pointer in C? 2. The elements of array are always stored in memory location a) % c)& a) Random c) sequential b) # d) * b) Random and sequential d) None 9. Before using pointer it should be . 3. Key word is used to declare structure a) Declared c) Initialized a) INT c) struct b) Declared & Initialized d) None b) dstructure d) suct
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?
salary. Program will read the information of one person and display them 4
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