You are on page 1of 4

Question Bank on part 3

Questions 10: Introduction C

Q. What is keyword? Write names of keywords available in C. [RTU 2017]

Q. Explain the concept of preprocessor? Also described the preprocessor directions in detail. [RTU 2015]

Q. What is scope in variable in C? Explain type casting in detail also. [RTU 2015]

Q. Explain difference between automatic and static variable. [RTU 2015]

Q. (a) What is difference between constant and variable?

(b) What are the data type in C? Explain with example. [RTU 2001, 2006, 2011, 2014]

Q. Explain structure of program in C language briefly. [RTU 2010, 2014]

Q. What are the advantage and disadvantage of C language? [RTU 2011]

Questions 11: Operators and Expressions

Q. List arithmetic, relational, logical and assignment operators. [RTU 2017]

Q. List arithmetic and logic operators available in C. [RTU 2012]

Q. Write a program to add two number and explain this program step by with the help of flow chart.

Q. What do you understand by precedence of operator? How is it consider in expression. [RTU 1994,
1999, 2003, 2010]

Questions 12: Input/Output in C

Q. Write names of input and output functions available in C.

Q. Differentiate among getch(), getche() and getchar().

Questions 13: Decision Making and Control

Q. Write a Program to read marks of five subjects and print division.


Percentage Division
>=60 First
>=48 & <=59 Second
>=36 & <=47 Third
<36 Fail
Q. Write a program to check whether the input number is prime or not. [RTU 2004, 2007, 2011, 2014]

Q. Any character is entered through the keyboard, write a program to determine whether the character
entered is a capital letter, a small case letter, a digit or a special symbol.
Question Bank on part 3

The following table shows the range of ASCII values for various characters:
Character ASCII Values
A -Z 65-90
a-z 97-122
0-9 48-57

Questions 14: Looping

Q. Write Program to print:


*
**
***
****
*****
Q. Differentiate between break and continue with example.

Q. Differentiate between while and do while loop. [RTU 2011]

Q. Write a program to check whether the input number is prime or not. [RTU 2001, 2007, 2011, 2014]

Write a program that given number is prime or not. [RTU 2001, 2007, 2010, 2011]

Questions 15: Array and Strings

Q. Write a program to pass a matrix as an argument to a function and display the matrix in the function.
[RTU 2015]

Q. Write a program in C for matrix multiplication. Assume there are two matrices of order 3*3. Also show
the output in new matrix as a order of 3*3. [RTU 1994, 1998, 2002, 2004, 2008, 2016]

Q. Write a program to find length, copy, concatenate, compare, and reverse of string using pre-define
function.

Q. Explain the pre-define function in string.

Q. Write a program to reverse string world wise:

Input: Union is strength

Output: Strength is Union

Questions 16: Pointer

Q. Contrast between parameter passing in a function, ‘By Value’ and ‘By Reference’. [RTU 2016]
Question Bank on part 3

Q. Write a C language to swap two number using pointer and function. [RTU 2008, 2011, 2015]

Q. With the help of program explain pointer as a function parameter.

Q. Write a program in C language for swapping two number using pointers. [RTU 2008, 2011]

Q. What is pointer? Discuss advantage of pointer. [RTU 2010]

Q. What is pointer? Discuss disadvantage of pointer. [RTU 2008]

Q. Write short note on Passing and Array to a function. [RTU 1994, 1998, 2002, 2005]

Questions 17: Structures

Q. Discuss various storage class available in ‘C’ with the help of suitable example. [RTU 2016]

Q. Explain array of structure with the help of suitable program also describe structure within structure
with example. [RTU 2015]

Q. What is structure? Why we need structure? [RTU 2008]

Q. What is structure? What are its various advantage. [RTU 2007]

Questions 18: Functions

Q. What is function? Explain its two categories. [RTU 2017]

Q. Discuss various storage class available in ‘C’ with the help of suitable example. [RTU 2001, 2006,
2013, 2015, 2016]

Q. How can you pass entire array as a function argument explain by example. [RTU 2016]

Q. Write an explain string handling function and user define function. [RTU 2015]

Q. What do you mean by function? How many types of function are available in C? [RTU 2011, 2014]

Q. What is storage classes? How many storage classes are available in C? Explain. [RTU 2013, 2015,
2016]

Q. Write short note on Passing and Array to a function. [RTU 2010, 2013]

Questions 19: Files

Q. Discuss predefined functions available in ‘C’ for file processing and handling. [RTU 2016]

Q. Write a program in ‘C’ to read contents from a file and display. [RTU 2016]
Question Bank on part 3

Q. Explain the function fopen() used to open a file in C. What are the different modes associated with
fopen()? Explain meaning of each one. [RTU 2005, 2010, 2011, 2014]

Q. Explain the function fopen() used to open a file in C. What are the different modes associated with
fopen()? Explain meaning of each one. [RTU 1995, 1999, 2002, 2005, 2011]

You might also like