[go: up one dir, main page]

0% found this document useful (0 votes)
238 views8 pages

PPS-I Questions Bank-2020

The document contains a list of important questions for the first semester of an engineering course. It covers topics in five units - algorithms and flowcharts, control structures, functions, arrays, and pointers. For each unit, it lists 2, 3, and 10 mark questions related to concepts in that unit. The questions range from definitions and syntax to writing small programs to implement specific tasks.

Uploaded by

bolt spark
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
238 views8 pages

PPS-I Questions Bank-2020

The document contains a list of important questions for the first semester of an engineering course. It covers topics in five units - algorithms and flowcharts, control structures, functions, arrays, and pointers. For each unit, it lists 2, 3, and 10 mark questions related to concepts in that unit. The questions range from definitions and syntax to writing small programs to implement specific tasks.

Uploaded by

bolt spark
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

eethanjali College of Engineering and Technology

Cheeryal(V), Keesara(M),Ranga Reddy-501301(T.S)

PPS-I
IMPORTANT QUESTIONS (I-SEM)

UNIT 1

2 MARKS

1) What is algorithm? Write an example?

2) What is flowchart? Write an example?

3) Convert the number 24 into binary?

4) What is the difference between compiler and interpreter?

5) What is the difference between Algorithm, Flowchart and Pseudo Code?

6) What is the difference between variable and constants?

7) Write the different types of operators in c?

8) Write the control strings of all primary data types?

9) Evaluate the following expression

F=A+B-C*D/E
10) Calculate Bitwise AND for 2, 3?

11) Calculate Bitwise OR for 4, 8?

12) Describe the two major categories of software?

13) What is the difference between white box testing and black box testing?

14) Differentiate between source program and object module?

15) Discuss the difference between declaring a variable and initializing a


variable?

16) Discuss the purpose of header files in C language and give examples?
17) Analyze the difference between = and == symbols in C?

18) Define operator precedence and associativity?

19) Explain the ternary operator with example?

20) State and explain various types of computer languages?

21) List and explain different symbols used in flowchart?

22) What is the purpose of Linker?

23) Classify various types of data types?

24) Differentiate between Bitwise AND, Bitwise OR and Bitwise XOR?

25) Explain shift operators in c?

3 MARKS

1) Explain the rules for identifiers with an example?

2) How to create and run a c program?

3) What are the different generations of computer languages?

4) How to convert decimal number to Binary number? Explain with an example?

5) What is use of sizeof operator?

6) What is data type? Explain different types of data types in c?

7) Explain Increment and decrement operator with an example?

8) Explain precedence and Associativity with example?

9) Write a C program to calculate area of a circle?

10) Write a C program to implement bitwise operators?

11) if x=67 then evaluate x>>1 and x<<1

12) Define SDLC and its phases?

13) Write about Computer System in detail?

14) Explain different ways of solving a problem?

15) Explain Special operator in c?


10 MARKS

1a) Explain computer block diagram with a neat sketch.

b) Draw a flowchart to find the sum of ‘n’ natural numbers.

2 a) Write a c program to read number from keyboard and display same number

b) Explain Input and output functions in C language?

3 a) Write precedence and associativity for all operators?

b) Explain relational operator with an example.

4 a) Write a C program to implement all arithmetic operators in C?

b) Explain logical operators with an example.

5. a) Define algorithm and state its characteristics ?

b) Write an algorithm to find the quadratic roots of an equation?

6. a) Describe the steps in program development?

b) Design a flowchart to find the maximum number among three numbers?

7. a) state and explain various steps in creating and running C program?

b) Define Identifier and list the various rules for identifiers?

8. a) Discuss various operators In c language with an examples

b) Describe the structure of c program in detail?

9. a) What is data type and explain different types of data types in C language?

b) Define the following things a) variable b) keyword c) constant d)


comments

10. a) Write a c program to implement sizeof operator

b) Write a c program to calculate the area of circle

11. a) Define an expression and state the rules for evaluating an expression with
an example?

b) Discuss the purpose of type conversion and explain its methods


UNIT 2

2 MARKS

1) Explain goto syntax with an example?

2) Explain if-else statement syntax with an example?

3) What is the difference between while loop and do-while loop? Explain with syntax and
example?

4) Write a c program to display even numbers below 100 using for loop?

5) Explain break and continue with an example?

6) List the basic requirements for loops?

7) Write syntax for else if ladder?

8) Write Syntax for Switch –case Statement?

9) State the difference between pre-test and post-test loop?

10) State the difference between else if ladder and switch –case statement

11) Write syntax of for loop?

12) State the applications of break statement?

13) Differentiate between one way, two way and multiway selection statements with
examples?

14) Define loop and its advantages?

15) Write syntax for different loops in c?

3 MARKS

1) Write the syntax and flow chart of else-if ladder?

2) Write the syntax and flow chart of nested if?

3) What is nested for loop? Explain with an example.

4) Write a C program to implement the given number is multiple of 7 and 3.

5) What is the difference between entry-control led loop and exit-controlled loop?

6) Write the syntax and flowchart for switch –case statement?


7) Describe the need of goto statement?

8) Compare else if ladder and switch statement?

9) Compare break and continue statements in c?

10) How multiple selections are implemented in c?

10 MARKS

1) Write a c program to find Individual digits of a positive integer?

2) Write a c program to find the factorial of a given number?

3) Write a c program to print the sequence of n terms using Fibonacci series?

4) Write a c program to find sum of even numbers below 100?

5) Write a c program to determine whether the given number is Armstrong number or not?

6) Write a c program to solve the following sum

Sum=1+x+x2+x3+x4+..................... +xn (where x and n values are supplied by the user)

7) Write a c program to find all the prime numbers between 1 and n(where n value is supplied

By the user).

9) Write syntax of switch-case and implement a simple arithmetic calculator using switch-
case?

10) Write a c program to implement sum of n natural numbers?

11) Write a c program to implement multiplication table of given number using any loop

12) Write a c program to print n to 1 using while loop?

13) Write a c program to find whether given number is even or odd?

14) Write a c program to find whether the given character is a vowel or not using switch
statement?

15) Write a c program to find the number of days in a month for the month given as
numerical value ( eg. Jan=1, feb=2 …) using switch statement
UNIT 3

2 Marks

1) What is a function? Explain with the syntax?

2) What is the difference between user defined and library functions in c?

3) Write the different categories of functions?

4) What is the use of return statement in functions?

5) Define a function. Why are they needed?

6) Why the function prototype required?

7) Discuss the advantages of functions?

8) What will happen when data type of a variable in the function declaration does not match
with the corresponding variable in the function header?

9) Differentiate between main () function and other functions?

10) Distinguish between function prototype and function definition.

3 MARKS

1) Explain No Arguments and No Return values with a small example?


2) Explain Extern variables with syntax?
3) Explain automatic variables with syntax?
4) What is Recursive function? Write syntax with a small example?
5) What is the difference between automatic and static variable?

10 MARKS

1) Write a c program to find GCD of given 2 numbers using recursive and non recursive?
2) Explain categories of functions with examples?
3) Explain storage classes with examples?
5) Write a c program to find factorial of a given number using recursive and non recursive?
6) Distinguish between user-defined and built-in function?
7) Distinguish between call-by-value and call-by-reference?
8) Explain the categories of function with examples.
9) Distinguish between function prototype and function definition.
10) Discuss the function mechanism with parameter and with return value?
11) Discuss the function mechanism with parameter and with no return value?
12) Write a C program to swap two values using functions.
13) Write a C program to calculate area of a triangle using function.
14) Write a C program to calculate factorial given number using functions.
15) Write a C program to find greatest among three numbers using functions?
16) Explain parameter passing techniques with suitable examples.
17) Write a C program to swap two integers using call–by-value method of passing
arguments to a function.
18) Write a C program to find GCD of given 2 numbers using functions.
19) Write a C program to calculate the reverse of a number.

UNIT 4

2 MARKS

1) What is an array? How to declare a 1D array?


2) How to initialize the values at runtime in 1D array?
3) What is the use of multi dimensional array? Explain with syntax?
4) Write the syntax of 2 dimensional arrays in c?
5) What is the difference between compile time initialization and runtime initialization in
arrays?

3 MARKS

1) How to pass an array to a function? Explain with syntax?

2) Explain array memory allocation with example?

3) What are the array applications?

4) Write a C program to find sum of even numbers in an array?

5) What is the difference between fixed-length and variable-length array?

10 MARKS

1) Write a c program to find largest and smallest number in a list of array?


2) Write a c program to calculate i) addition of 2 matrices
ii) Multiplication of 2 matrices?
3) Write a c program to sort the elements of an array in ascending order?
4) Write a c program to search an element in a list of array?
5) Write a c program to read 10 integer elements and calculate their sum using arrays?

UNIT 5

2 MARKS

1) What is pointer? How to declare and access the pointers in c?


2) What is the difference between address of(&) and indirection (*) operators?
3) Write the scaling factor of all primary data types in c?
4) What are the memory allocation functions?
5)What is the difference between malloc()and calloc()?
3 MARKS

1) What are the rules of pointer operations?


2) Explain pointers and arrays with an example?
3) Explain pointers to functions?
4) Explain pointer Arithmetic in c?
5) Explain pointer to pointer with an example program?
6) What is the difference between static memory and heap memory?

10 MARKS

1) a)What is void pointer? Explain with an example?


b) What is NULL pointer? Explain with an example?
2) Explain call by value and call by reference with examples?

3) Write a c program to find the largest number in a list of elements using calloc () function?

4) Write a C program to find sum of even numbers and odd numbers using pointers and Arrays?

5) Explain array of pointers with an example program?

6) Discuss in detail about pointer arithmetic rules with an example?

You might also like