Rayat Shikshan Sanstha s S. M. Joshi College, Hadapsar Pune-28 F.Y.B.C.A(Science) Basic C Programing QUESTION BANK Q1. Multiple Choice Questions 1. Diagramatic or symbolic representation of an algorithm is called 1. Data-Flow diagram 2. E-R diagram 3. Flowchart 4. None of the above 2. Object oriented programming method is followed in 1. C programming language 2. C++ programming language 3. C# programming language 4.Both [2] and [3] 3.The geometrical figure shown below in flowchart represent 1. Input/Output 2. Terminator 3.Decision 4. Looping 4.The CONTINUE statemment cannot be used with 1. for 2. Switch 3. do 4. While 5. A labeled statement consist of an identifier followed by a 1. ; 2., 3. : 4. None of the above 6. How many times the loop will be executed? 1. Infinite 2. 9 3. 5 4. 0 7. Who developed the C programming language? 1. Bjarne Stroustrup 2. James Gosling 3. Dennis Ritchie 4. Ray Boyce 8. A name having a few letters, numbers and special character _(underscore) is called 1. Keywords 2. reserved keywords 3. Tokens 4. identifiers
9. The words if, else, auto, float etc. hasve predefined meaning and users cannot use them as variables. These words are called 1. Constant 2. Identifier 3. data types 4. keywords 10. Which operators are used to compare the values of operands to produce logical value in C language? 1. Logical operator 2. Relational operator 3. Assignment operator 4. None of the above 11.Which operators perform operations on data in binary level? 1. Logical operator 2. Bitwise operator 3. Additional operators 4. None of the above 12. The operator "&" is used for 1. Bitwise AND 2. Bitwise OR 3. Logical AND 4. Logical OR 13. Which are built-in data structures in C programming? 1. Arrays 2. Structures 3. Files 4. All of the above 14. The size of a character variable in C is 1. 8 bytes 2. 4 bytes 3. 2 bytes 4. 1 byte 15. By default a real number is treated as a 1. float 2. Double 3. long double 4. integer 16. The && and operators 1. compare two numeric values 2.combine two numeric valuesshort hand operator, & 3. compare two boolean values 4. none of these 17Prototype of a function means 1.Name of Function 3.Declaration of Function 2. Output of Function 4.Input of a Function 18. Which of the following is responsible for conversion of C programs to machine language 1. Operating system 2. An editor 3. A compiler 4. An interpreter
19. In C language, statement are terminated with. 1. period 2. semicolon 3. new-line character 4. none of these 20. Comma operator is an 1. Unary operator 2. Binary operator 3. Ternary operator 4. None of these 21. C is an 1. Assembly level language 2. High level language 3. Machine level language 4. None of these 22.Which of the following is not a basic data type? 1. char 2. Float 3. Long 4. double 23. Which of the following is not a valid escape sequency? a) \ r b) \ v c) \ a d) \ m 24. By default the return type of a function is a) char b) int c) float d)void 25. In C language, elements of two dimensional arrays are stored in a) Random order b)column major order c) Row major order d) None of these One Line Questions 1. What is variable? 2. What is constant? 3. How many bytes are required to store integer type value? 4. How many bytes are required to store float type value? 5. How many bytes are required to store char type value? 6. How many bytes are required to store double type value? 7. What is main difference between variable and constant? 8. What is logical variable? 9. What is global variable? 10. What are major disadvantages of machine code? 11. Which are relational operator? 12. Which are logical Operators? 13. Which are Bitwise Operators? 14. Which are unformatted input output functions? 15. Which are formatted input output functions? 16. What is the use of getchar() function? 17. What is the use of getch() function? 18. What is the use of getche() function?
19. Give syntax of simple if stmt 20. Give syntax of simple if else stmt 21. Give syntax of simple nested if else stmt? 22. Give general Syntax to declare One dimensional array 23. Give general Syntax to declare two dimensional array 24. What is function? 25. What is use of return statement? 26. What is recursive function? 27. What do you mean by call by value? 28. What do you mean by call by reference? Questions for 4 or 5 marks 1. Enlist the features of C. 2. Explain different data types used in C language? 3. Explain type identifiers in C? 4. Explain in brief structure of C programming? 5. what is operator enlist all operators used in C? 6. what is data type explain the any four data types used in C language? 7. Differentiate between relational and logical operators used in C? 8. what is variable? What are the rules for defining variables? 9. Differentiate between local variable and global variable? 10. Explain symbolic constan5ts used in C? 11. Explain any two bitwise operator with suitable example. 12. Explain logical operators and expressions used in C? 13. Explain the following g functions i)getch() and ii) clrscr() 14. Explain printf() function with an example 15. Explain scanf() function with an example 16. Explain syntax and use of Do While statement 17. Which looping statements does C provides?explain any one. 18.Explain switch statement with its syntax and example. 19.What is array? How to declare array?explain with suitable example. 20. Expalin one dimensional array with an example 21. Explain Two dimensional array with an example 22. Explain applications of array 23. What is the difference between call by value and call by reference. 24. Explain the use of Typedef. 25. What is a function? 26. What are enumerations? 27. What is recursion?
28. What are C tokens? 29. Write a C program to print addition of two matrices. 30.Write a C program to print addition of two matrices. 31.Write an algorithm to print first 20 odd numbers. 32.Explain for loop with syntax & example. 33. Draw a flow chart to check whether the given character is vowel or consonent. 34. Give the syntax & use of following function i) Pow ( ) ii) sqrt ( ) iii)cos ( ) iv) log ( ) 35. What is the difference between the function getch ( ) and getchar ( ) and getche ( )? 36. What are the different advantages and disadvantages of algorithm. 37. Write a C program to display the following output upto n th given value e.g : n = 4 o/p :- A B C D A B C A B A 38. Explain advantages of recursion