Friday, November 30, 2018

CP Questions R15 JNTUA UNIT I and II


UNIT-I      2 MARKS
1.                   With the help of neat sketch, explain the bitwise shift – right operator. 
2.                   Draw and explain the truth table for bitwise exclusive OR operator.
3.                   What is type definition? Illustration it with its syntax and example.
4.                   Define flowchart. Describe the symbols used for representing reading and decision making statements.
5.                   What is system software? Give examples.
6.                   Define algorithm and given an example.
7.                   What are the various basic data types in C?
8.                   Write the syntax for conditional operator.
UNIT-I     10 MARKS
1.       Define a computer? explain its types and its application areas?
2.                    what is a software and briefly describe its types
3.                    Write in detailed note about C data types ?
4.                    Explain about relational operator with an example program ?
5.                    Draw the block diagram of the computer and explain its hardware components ?
6.                    Define an algorithm and write various classifications of algorithms and explain them ?
7.                    Define a constant and explain its types? Write a C program to evaluate area of rectangle?
8.                    Discuss about following operators (a) increment  and decrement  (b) Logical
9.                    Explain software development method and apply SDLC with example?
10.                Define flow chart and what are the various symbols used in flowchart explain briefly ?
11.                What is variable, how it is declared and initialized? write a c program to find the average of three numbers?
12.                Explain about the following operators with example (a) ternary operator(b) bit-wise operators?
UNIT-II      2 MARKS
1.       Distinguish between while and do – while loops.
2.                   Differentiate between while loop and do while loop.
3.                   Define Array. Write the declaration of Multi Dimensional Array.
4.                   What is rvalue? Give one example.
5.                   Write the syntax of conditional operator and explain its operation with an example.
6.                   With an example distinguish between break and continue statement.
7.                   What is the purpose of strstr()? Give its syntax.
8.                   Briefly describe the iterative statements.
9.                   How do you declare and initialize a multidimensional array? Give an example.
10.                Mention the purpose of the functions strset() and strcpy().
                                          UNIT-II      10 MARKS

1.       Discuss in detail about the various string manipulation functions 
2.                   Write a program to print the Fibonacci sequence of any given number.
3.                   Write a program to calculate the GCD of  given two numbers.
4.                   What is an array? Explain the one dimensional array with suitable example program.
5.                   Write a program to enter a number and then calculate the sum of its digits.
6.                   With the help of syntax and flowchart, explain any two iterative statements.
7.                   Write a program that accepts a number from 1 to 10. Print whether the number is even or odd by using switch case construct. 
8.                   Discuss in detail about the two dimensional arrays.    
9.                   Write a program to display whether any given string is a palindrome or not.
10.                Write a C program to check whether a given number is Armstrong number or not. 
11.                Describe the Multiway selection statements in C with examples.
12.                Write the algorithm for converting a character into a number.
13.                Write a C program for matrix multiplication.
14.                Discuss the following functions: (i) Strstr ().  (ii) Strest ( ).  (iii) strrev ( ).
(iv) strcmpi ( ).  (v) strncmpi ( ).
15.                Differentiate between elseif and switch statements with examples.
16.                Write a C program to add two matrices.
17.                Write a C program to sort a list of names.
18.                Explain various branching statements in C with examples
19.                Design an algorithm to compute n factorial (n! ) where n>=0 
20.                Describe the purpose of break and continue statements in C.
21.                What is recursion? Explain with example. Also give the advantages and disadvantages.
22.                List and explain loop control statements in C.
23.                Write a C program to find the kth smallest in the given array.
24.                Discuss any five string handling functions.                                                        
25.                Why should we avoid using goto statement in programming? How it is different from continue statement? Explain with examples.
26.                Write the algorithm to check whether a given number is prime or not.
27.                How do you declare a two dimensional array? Give its memory representation.