You are on page 1of 4

University Questions

Computer Programming
Unit I
Dec 2012
Q1. Explain different levels of programming languages with its advantages and disadvantages. (8 M)
Q2. (i) Explain sequence, repetition and decision statements in algorithm. (4 M)
(ii) Draw flowchart to calculate the sum of first ten natural numbers. (4M)
Q3. (i) Write a program in C for finding the addition of two floating point numbers. (4M)
(ii) Write a program in C to demonstrate the use of various data types in C. (4M)

May 2013
Q1. Explain assembly language and high level language with its advantages and disadvantages. (8 M)
Q2. Define flowchart. Give the symbol used in flowchart with their meaning (8M)
Q3. Write an algorithm and C program for swapping of two integer numbers. (8M)

Dec 2013
Q1. Explain four basis data types in C. What are the different types of qualifiers. (8M)
Q2. Write a program in C to compute the volume of cylinder and rectangular box, given for cylinder v1=
3.14*r*r*h , for rectangular box v2= l*b*h (8M)
Q3. (i) Explain the structure of C program. (4M)
(ii) Write a program C to find the average of 3 floating point numbers (4M)

May 2014
Q1. (i) Explain machine language with its advantages and disadvantages. (4 M)
(ii) Define the following terms -a. Compilers b. interpreter c. linker d. editor (4M)
Q2. (i) Draw and explain different flowchart notations. (4M)
(ii) Write a C language program for arithmetic operations. (4M)
Q3. (i) Write a program in C to demonstrate the use of various data types in C. (4M)
(ii) Explain algorithms and properties of algorithms with examples (4M)


Unit II
Dec 2012
Q1. What are different operators in C. Explain them with examples. (8M)
Q2. (i) write a program in C to calculate the factorial of the given number. (4M)
(ii) Write a short note on following a. break b. continue (4M)
Q3. (i) Write a program in C for finding the largest number among the 3 numbers (4M)
(ii) Write the syntax of following with example a. getchar() b. putchar() c. scanf() d.printf() (4M)
May 2013
Q1. Explain with example while loop and for loop, also give their syntax. (8 M)
Q2. Write an algorithm and C program for addition of first N natural numbers using any loop. (8M)
Q3. Explain increment and decrement operator in C with example. Also write a program in C to find
largest of two integer numbers (8M)
Dec 2013
Q1. Explain conditional branching statement in detail. (8M0
Q2. Write a program in C to print given number is prime or not. (8M)
Q3. (i) Explain the concept of nested loops. (4M)
(ii) Write a program in C to find smallest number among the 3 numbers. (4M)

May 2014
Q1. Explain different C operators in details. (8M)
Q2. (i) Explain nested if-else statement with example. (4M)
(ii) Write a C program for displaying addition of 1 to 10 numbers by using for loop. (4M)
Q3. (i) Explain for loop with example. (4M)
(ii) Explain with syntax a. break b. goto statement (4M)


Unit III
Dec 2012
Q1. What is array? Explain its types. Give their declaration and initialization. (8M)
Q2. (i) Write a program in C for concatenation of two strings without using C library function. (4M)
(ii) What is array initialization? State various ways of array initialization. (4M)
Q3. (i) Write a program in C to find mean or average of all elements in one-dimensional array (4M)
(ii) Explain the basic function provided by C for string operations with syntax. (4M)

May 2013
Q1. Write a program for addition and subtraction of 2 two dimensional matrices (8M)
Q2. Explain with syntax the standard C library function for strings. Also write a program in C to calculate
the length of string using standard C library functions. (8M)
Q3. Write a short note on arrays and its declaration. What are the types of arrays and names of the
operations performed on its. (8M)

Dec 2013
Q1. What is array? Illustrate initialization of one-dimensional and two dimensional array with an
example. (8M)
Q2. Write a C program to find largest and smallest number in array. (8M)
Q3. (i) Show storage of one-dimensional array in memory with the help of diagram. (4M)
(ii) Write a C program to copy one string into another using string library functions.

May 2014
Q1. Define array. Explain one-dimensional array declaration and initialization with its types. (8M)
Q2. Write a C program to find largest and smallest of N numbers using array. (8M)
Q3. (i) Explain different strings handling functions in C. (4M)
(ii) Write a C program to find length of string without C library function. (4M)

Unit IV
Dec 2012
Q1. Define function. Explain with example function declaration and definition. (8M)
Q2 (i) Write a C program for calculating area of circle using function. (4M)
(ii) Explain initialization of structure with suitable example. (4M)
Q3. (i) Write a program to read and display information about a student using structure in C. (4M)
(ii) Write what care should be taken while calling a function. (4M)

May 2013
Q1. What is function and function prototype? Write a program in C to do the square of number using
function. (8M)
Q2. What is structure? Give the syntax for its declaration with example. Give the difference between
array and structure. (8M)
Q3. Write a program in C to read and print the information about book using structure. (8M)

Dec 2013
Q1. Explain terms in details. (8M)
(i) Function prototype.
(ii) Function definition
(iii) Function call
(iv) Return value
Q2. Write a program in C to check number is odd or even by using function. (8M)
Q3. (i) Explain structure in C with example. (4M)
(ii) Write a program in C to demonstrate a function with call by value. (4M)
May 2014
Q1. Define function. Example with suitable example function declaration and function definition. (8M)
Q2. (i) Write a program in C language to find largest number among two numbers using function. (4M)
(ii) How can a structures member be accessed explain with example. (4M)
Q3. Write an algorithm, flowchart and program in C language for student record processing unsing
structure. (8M)


Unit V
Dec 2012
Q1. (i) Write a short note on following. (8M)
a. Data abstraction b. inheritance
c.message passing d. polymorphism
Q2. Write a simple C++ program to demonstrate the use of class and object. (8M)
Q3. (i) What is procedure oriented programming? What are its characteristics. (4M)
(ii) Write a C++ program to demonstrate the use of scope resolution operator. (4M)
May 2013
Q1. What is scope resolution operator? What is its use? Write a program in C++ for addition of two
integer numbers using scope resolution operator. (8M)
Q2. Write note on basic concepts of object oriented programming. (8M)
Q3. Explain objects and classes in C++. Write a program in C++ for simple class and object. (8M)
Dec 2013
Q1. Explain use of scope resolution operator in C++ in details with example. (8M)
Q2. Write a program in C++ to find smaller among two numbers using class and object. (8M)
Q3. (i) How the data and functions are organized in object oriented programming language. (4M)
(ii) Write a program in C++ that uses class where member functions defined outside of a class. (4M)
May 2014
Q1. (i) Distinguish procedure oriented programming language and object oriented programming
language. (4M)
(ii) Explain class and object with example. (4M)
Q2. Explain the following terms:
(i) Data abstraction and encapsulation (4M)
(ii) Inheritance and polymorphism (4M)
Q3. (i) Explain different access specifiers in C++ (4M)
(ii) Write a program in C++ checking given number in even or odd using class and object. (4M)

You might also like