0% found this document useful (0 votes)
45 views2 pages

PPS QBANK 2 of 2023,2024 Ptu Ques Papsr

Uploaded by

dybydx48
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)
45 views2 pages

PPS QBANK 2 of 2023,2024 Ptu Ques Papsr

Uploaded by

dybydx48
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/ 2

PPS QUESTION BANK

UNIT 1

1) Differentiate between primary and secondary memory.


2) What is an algorithm? Give an example.
3) Give an example of run time error.
4) Explain various built in data types in details.
5) What are advantages of using flowchart? Create a flowchart to find the given number is
prime or not.
6) Explain in detail various components of computer system. Explain various types of computer
memory.
7) Explain in detail different data types used in c programming language.
8) What are different types of memory?
9) What is a flowchart how is it used in programming?
10) What is a variable?
11) Explain the process of compiling a C program.
12) Design a flowchart to find the sum of n natural numbers.
13) Explain Big(O) notation.
14) List various symbols used in flowchart. Draw a flowchart to find the sum of all numbers from
1 to n.
15) Differentiate between algorithm and flowchart.

UNIT 2

1) Explain various logical operators with the help of an example each.


2) What are bitwise operators?
3) What is continue statement? Give an example using for loop.
4) What is while loop? Write the syntax for the same. Write a program to find if the given
number is prime or not.
5) Explain in detail all the types of control statement with help of syntax for all.
6) What is for loop, how is it different from while loop?
7) Explain how we can use if-else statement and how the differ from switch statement.
8) Write a program using loops to find the sum of numbers from 1 to 10.
9) Explain how we can use if-else statement.

UNIT 3

1) How can we create a 2D array? Write a program to display sum of all the elements of a 2D
array.
2) What is 2D array, explain?
3) What is the difference between string and arrays? Also explain how you will decide whwn to
use which data type.
UNIT 4

1) What is the complexity of bubble sort and why?


2) Explain any two sorting algorithms and how they differ from searching algorithms.
3) Write a program to implement selection sort.
4) Write a program for Quick sort.

UNIT 5, 6

1) Define recursion and give an example.


2) Why should one prefer call by address while swapping two numbers?
3) How many methods are there to pass a value to the function? Write a program to swap two
numbers using call by address method with help of a function.
4) What is a user defined function?
5) Using recursion, find Fibonacci series.
6) Difference between call by value and call by reference.
7) What is recursion? How is it different from other functions? Give an example.
8) Write a program to find rots of quadratic equation.

UNIT 7
1) What is Structure?
2) How can we initialize the members of the structure?
3) Write a program to create a simple structure for sorting information of an employee?
4) Differentiate between structure and array.

UNIT 8
1) What is a pointer? Give an example how to use integer pointer.
2) Why is a pointer used?
3) Write a program to find the sum of all elements of an array using pointers.
4) Write the syntax to create a pointer.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy