Mascot Previous Years Solved Sample Placement Papers
- Prefix expression of 2*3/(2-1)+5*3 is
a) *23-21/-53*1
b) 23*21+/53*+
c) 21*23-/35*+
d) -/53*+23*21
Answer: c) 21*23-/35*+ - ele=stack[top] is for
a) push
b) pop
c) enqueue
d) dequeue
Answer: b) pop - Prefix expression of A+(B*C-(D/E^F)) is
a) ABC^/DEF*
b) ABC*DEF^/
c) ^/ABC*DEF
d) *ABC/DEF^
Answer: b) ABC*DEF^/ - Which operation is used to change data in data structure
a) create
b) destroy
c) select
d) update
Answer: d) update - The study of data structure mainly deals with
a) implementation of structure on computers
b) mathematical description of structure
c) to determine amount of space in memory
d) all of these
Answer: d) all of these -
The library function
exit()
causes an exit from:A: The loop in which it occurs
B: The block in which it occurs
C: The function in which it occurs
D: The program in which it occurs
Ans: D -
The
getche()
library function:A: Returns a character when any key is pressed
B: Returns a character when ENTER is pressed
C: Displays a character on the screen when any key is pressed
D: Does not display a character on the screen
Ans: A -
The conversion from basic data to class type can be done by .......
A: Writing constructor
B: Is not possible
C: overloaded casting operator
D: object of a class
Ans: A -
When a base class pointer points to derived class object?
A: It can access only base class members
B: It can access only derived class members
C: Both base class & derived class members
D: None
Ans: A - Various application software is based on data structure
a) linked list
b) graph
c) stack
d) queue
Answer: c) stack - In which of the following application queue data structure is used
a) simulation
b) type scheduling algorithm
c) print server routine
d) all of these
Answer: d) all of these - In which data structure element can be inserted and removed in any position
a) simple queue
b) circular queue
c) priority queue
d) double ended queue
Answer: d) double ended queue - In which queue addition and deletion takes place at both the ends
a) simple queue
b) circular queue
c) priority queue
d) double ended queue
Answer: d) double ended queue -
Which of the following statement is correct?
A: Overloaded functions can have at most one default argument.
B: An overloaded function cannot have default argument.
C: All arguments of an overloaded function can be default.
D: A function if overloaded more than once cannot have default argument.
Ans: C -
Which of the following statement is correct?
A: Constructors can have default parameters.
B: Constructors cannot have default parameters.
C: Constructors cannot have more than one default parameter.
D: Constructors can have at most five default parameters.
Ans: A