You are on page 1of 2

Model Question Paper 1 Computer Concepts and Programming with C Submit before 14th Nov Answer all questions

Part A Each question carries 1 mark

1) Computer software can be broadly divided into ______ and ______ 2) The code in the source file is first translated into ______ by the ______ 3) The series of interrelated phases that is used to develop a computer software is known as 4) ___ and ___ are used to denote a line comment and block comment respectively 5) The maximum length to which C will recognize an identifier is __ 6) The three integral types are: 7) __ is used to name an object and __ is used to create the object 8) In which of the following examples has all the variables been initialized? 9) Int count=0 b) int count c) int a,b; d) int a,b=0;

10) ___ is an example for a post test loop 11) %u is used in printf while displaying the ___ 12) A character array is always terminated with a __ 13) Datatype arrayname[][]. Fill in the square brackets for a two dimensional array 14) Indirect expression is indicated using an __ 15) __,__,__ and __ are the four functions used in memory management 16) A ragged array is an array of __ 17) A collection of related items, possibly of different types but having a single name is __ 18) All pre-processor commands start with the ___ sign 19) Which is the only storage class with external linkage 20) The program creation process in which an object module is joined with precompiled functions to form an executable program is called __ Part B Each question carries 2 marks 1) Explain the syntax and usage of printf and scanf statements 2) When is the void type used 3) What is a constant? What are the different types of constants? 4) Differentiate between an identifier and a variable

5) Define the following a) null statement b) compound statement 6) Write a program to find the square of a number 7) Write the syntax and usage of the exit and return statements 8) What are the two categories of comparative operators? Explain them along with their priority 9) What are the two methods of accomplishing multi-way selection in c? 10) What are functions? What are the two types of functions? 11) Define recursion 12) Define structure 13) What are pointers? Write about declaration and initialization of pointers 14) What are arrays? How do we declare and initialize an array? 15) Define bubble sort and insertion sort 16) What is the purpose of the address operator &? 17) What is memory allocation? What are the two types? 18) List the functions of an operation system 19) Draw the block diagram of a computer 20) Write down the range of the following numbering systems: binary/decimal/octal/hexadecimal.

Part C Each question carries 5 marks 1) Explain in detail about the evolution of programming languages 2) What are flow charts? What are the different symbols used in a flow charts? What are the advantages and disadvantages of a flow chart? 3) List and explain with an example each of the six expression categories 4) Explain in detail with an example: precedence and associativity 5) What are the different types of user defined functions? Write a pseudo code for each. 6) Write a program using recursion to generate Fibonacci series 7) What is the purpose and usage? How do declare and assign a structure? 8) Write in detail about memory allocation? 9) What is the standard c pre-processor? Explain about it in detail? 10) Explain how to declare and manipulate strings in c using a character array 11)Differentiate between call by value and call by reference