CPPS Question Bank
CPPS Question Bank
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.