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

CPPS Question Bank

Uploaded by

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

CPPS Question Bank

Uploaded by

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

Module 1

CPPS Question Bank


Difficulty Level Simple
Q.1 Explain programming paradigms.
Q.2 Is C a structured programming? Give 10 features.
Q.3 What is structured programming, Explain with advantages and Drawbacks.
Q.4 What is algorithm? Give example.
Q.5 What is Heuristic Algorithm? Give Example.
Q.6 Could computer be used to solve problems step by step?
Q.7 What is Problem Solving? Give steps.
Q.8 Why Problem Solving require Divide and Conquer? Explain with example.
Q.9 Explain with example: 1. Problem Understanding 2. Problem Solving Strategy 3. Goal Planning
Q.10 What are Problem Solving design Tools? Give Example.
Q.11 Explain an algorithm? Give example.
Q.12 Is a Flowchart a problem Solving design Tool? Give Example.
Q.13 Draw a flow-chart to find the greatest of given two numbers.
Q.14 Is a Pseudo-code, a problem Solving design Tool? Give Example.
Q.15 Explain primitive data types in C.
Q.16 Draw a Pseudo-code to find the greatest of given two numbers.
Q.17 Draw a flowchart to print first 10 natural numbers.
Q.18 Draw building blocks of flowcharts and explain the purpose.
Q.19 What is coding in Problem Solving?

Difficulty Level Medium

Q.20 Describe problem solving. What are types of problems.


Q.21 Write a program to find the simple interest.
Q.22 A Banker holds currency notes of INR 10, 20, 50, 100, 500 and paise 10, 25, 50 demonstrate use
of data types in C programming language.
Q.23 Draw flowchart to check the given number is even or odd.
Q.24 Explain Following: i> flow chart ii>Algorithm iii> Heuristic Algorithm iv> Pseudo code
Q.25 Could computer be used to solve problems step by step?
Q.26 Explain different ways to print the following data: int, long, float, double, character.
Q.27 Explain with example abstract data types in C programming language?
Q.28 Draw a flowchart to find the area of rectangle
Q.29 Why Heuristic Algorithms provide better performance.
Q.30 Explain Symbols of flowcharts, Give Example.
Q.31 Describe the steps used to solve the problem through computer.
Q.32 To verify a given number is ODD, develop a logic for this problem solving, present using Pseudo
code.
Q.33 What are literals? Illustrate using example to display it using appropriate command.
Q.34 Write an algorithm to find the square of given number.
Q. Assign data types to following literals 11, 50.55, ‘K’, “ABC” How to display these literals using C.
Q.35 Write a program to find the greater number between TWO numbers using ternary operator.
Q.36 Solve problem to identify greater number using appropriate operator in C to draw flow-chart.
Q.37 Explain following: void 2. ==, &&, || 3. ? 4. enum 5. if 6. case 7. while 8. do
Q.38 Write a program to find the area of circle.
Q.39 Which keywords are used to write loops and conditions, Give Example.
Q.40 What tools are used to convert ABC.c program to ABC.EXE
Q.41 List names of compiler tools used either On-Line or Off-Line.

Difficulty Level High

Q.42 Let F: X → Y be such that X ={1,2,3,4} and its Image Y={1,4,9,16}. Let x ∈ X. Represent the
solution using flowchart for the input x.
Q.43 Let X = {x0,x1,x3,…,x9} and X ∈I+. Let Y = Σ xi. Represent the solution using flowchart.
Q.44 Let X = {x0,x1,x3,…,x9} and X ∈I+. Let X ⊆ Y such that modulus of X with 2 is zero. With
the help of flowchart and Operators in C, represent the solution for some input xi ∈I+ to display xi ∈X
or Y. Use necessary Literals.
Q.45 Let X = {x0,x1,x3,…,x9} and Y, X ∈I+. Let X ⊆ Y such that modulus of X with 2 is zero.
Explain the selection of appropriate Keywords and Operators in C, to represent the solution for some
input xi ∈I+ to display xi ∈X or Y. Use necessary Literals.
Q.46 Let X = {x0,x1,x3,…,x9}, Y = {y0,y1,y3,…,y9} and Y ∈ R+, X ∈I+. Also X  Y = Φ. Explain
keywords used to define X and Y respectively. Collectively what are they called. Give example each.
Use necessary Literals.
Q.47 Let X= {x0}, Y={y0}, Z={z0} such that if X is TRUE and Y is TRUE then display Z. Draw
flowchart for the same and explain importance of symbols used.
Q.48 Let X = {1010}b. Let Y = f(X) be such that Y = {0101}b and Z = f(X) be such that Z = {0100}b.
Using C language operators explain the operation. Use necessary Literals.
Q.49 Let X ={x0} ∈I+, Y={y0} ∈R+ and Z ={z0} is set of character data type. Let K ={X,Y,Z}. Use
C language keywords to define X,Y,Z,K. Use necessary Literals.
Q.50 Let F: X → Y be such that X ={1,2,3,4} and its Image Y={1,4,9,16}. Let x ∈ X. Display the
solution using C keywords and operators for the input x. Use necessary Literals.
Q.51 Let F: X → Y be such that X ={1,2,3,4} and its Image Y={3,6,9,12}. Let x ∈ X. Display the
solution using C keywords and operators for the input x. How many ways the solution may be
presented. Use necessary Literals.
Q.52 Let F: X → Y be such that X ={2,4,8} and its Image Y={0}. Let x ∈ X. Display the solution
using C keywords and operators for the input x. How many ways the solution may be presented. Use
necessary Literals.
Q.53 Let F: X → Y be such that X ={2,4,8,10,12, 15} and its Image Y={2,4,8,0xA,0xC, 0xF}. Let x ∈
X. Display the solution using C keywords and operators for the input x. Use necessary Literals.
Q.54 Let X,Y,Z be such that X ={x0}, Y ={y0} ∈I+ and Z= {z0} where X holds a Literal Name, Y
holds the value pointed by X and Z represents the address of X. Explain ethical and unethical ways of
Naming a Literal. Illustrate to display Value of x0 and address of x0 using C keywords and operators.
Use necessary Literals.
Q.55 Let X = {+, ==, ?, ; , //, /*, */} be a collection of symbols. Use C keywords and the content of X
to illustrate C Code.
Q.56 Let Y = f(g(x)) such that g(x) is executed and result of which is returned to the outer function f()
for computation. Let g: x → x * 1. and f: g(x) → display(g(x) *1). Let values of x be {1, 1/3}. Assume
that g(x) returns one digit in 1 unit time. Present the analysis of this problem.

You might also like