NEW
Font size
WorksheetsPRO-LETS-1ST-ROUND
Total questions: 45
Worksheet time: 23mins
WHAT IS THE OUTPUT OF THIS C++ CODE?
0
1
2
INVALID
WHAT IS THE OUTPUT OF THIS C++ CODE
ERROR
4
3
2
Exit function in 'c' is defined in which header file ?
stdio.h
conio.h
stdlib.h
iostream.h
C++ programming language is discovered by____?
Dennis M. Ritchie
Bjarne Stroustrup
James Gosling
Guido van Rossum
An uninitialized pointer in 'c' is called?
void pointer
null pointer
wild pointer
this pointer
int **ptr is ?
pointer
pointer to integer
invalid
pointer to pointer
Recursive functions are executed in ?
in parallel sequence
FIFO order
LIFO order
Load Balancing
Which of the following data structures can handle updates and queries in log(n) time on an array?
Linked list
Stack
Segment Tree
Queue
'new' keyword in c++ create memory space in ??
stack memory
heap memory
text memory
register
Which function in C ++ is used to append one string at the end of another string ?
strcat()
stradd()
strappend()
strset()
A binary search tree whose leftsubtree and rightsubtree differ in height by atmost 1 unit
AVL Tree
Red-Black Tree
Full Tree
Lemma Tree
Choose the option below which is shown by function overriding
Abstraction
Encapsulation
Polymorphism
Inheritance
Another name of the generic class is?
Template class
Final class
Abstract class
Efficient code
Which of the following statements is correct?
Pointer to derived class cannot be created.
Base class pointer cannot point to derived class.
Derived class pointer cannot point to base class.
Pointer to base class cannot be created.
Of the following data structures, which has a Last in First Out ordering? In other words, the one that
came in last will be the first to be popped.
Stack
Queue
Vector
Array List
Which data structure is used in Breadth First Search of graph
stack
queue
Linked List
Heap
What will be the final value of x in the following C code?
#include <stdio.h>
void main( ){
int x = 5 * 9 / 3 + 9;
}
3.75
3
24
6
subsequence of string is____
always continuous.
always non continous
may or may not be continous
neither continous nor discontinues
Which function in c++ allows accepting and reading single and multiple line strings from the input stream
putline()
setline()
getline()
fixline()
Which of the following is not an OOPS concept?
Encapsulation
Polymorphism
Exception
Abstraction
Worst Case Time complexity for bubble sort is ________?
O(n)
O(n^2)
O(nlogn)
O(2^n)
Which of the following is NOT a characteristic of dynamic programming?
Memoization, which involves storing the results of expensive function calls and reusing them
Breaking a problem into smaller overlapping subproblems
Solving problems in a sequential manner.
Dynamic programming can be used for problems where the solution has an optimal substructure.
Time Complexity of merge sort is_______?
O(nlogn)
O(n)
O(n^2)
O(1)
In which form data is present at data link layer of osi model?
packet
frame
bits
segment
IN(64-BIT) SYSTEM WHAT IS THE OUTPUT OF THIS CODE??
0
4
8
2
In a microprocessor , the address of next executable instruction is stored in____
stack pointer
program counter
accumulator
Genral purpose register
IN 64-BIT SYSTEM THE OUTPUT OF THIS CODE IS
20
0
8
2
exception handling header file in c++
#include <exception>
#include <iostream>
#include <cmath>
#include<stdio.h>
When fopen() is not able to open a file, it returns
EOF
NULL
RUN TIME ERROR
NONE OF THE ABOVE
The only basic built-in immutable data structure in Python is
LIST
DATAFRAMES
DICTIONARY
TUPLE
What is the full form of OSI?
optical service implementation
open service Internet
open system interconnection
operating system interface
Which of the following entity does not occupy memory when created?
class
object
variable
pointer
which of the following operator cannot be overloaded?
( :: )
( + )
( - )
( * )
which of the given does not show compile time polymorphism?
function overloading
operator
overloading
virtual function
constuctor overloading
Exception occur due to which type of error?
compile time error
run time error
semantic error
logical error
vector in c++ stl is
dynamic array
static array
list
queue
What’s happen if base condition is not defined in recursion ?
stack overflow
stack underflow
none
L-value Error
predict the outout of this c++ code
5 4 3 2 1
1 2 3 4 5
5 5 5 5 5
1 1 1 1 1
______________ is a set of one or more attributes taken collectively to uniquely identify a record.
Primary Key
Foreign key
Super key
Candidate key
predict the output of this c++ code
0
9
15
10
What is meant by the classes and objects that dependents on each other?
Tight Coupling
Cohesion
Loose Coupling
None of the above
choose the correct option
compile time error
compile but not executed
hello
run time error
What is the use of toupper() function in C?
conversion from lowercase to uppercase
conversion from uppercase tolowercase
no function exist
typecasting
predict the output ??
2, 1, 15
1, 2, 5
3, 2, 15
2, 3, 20
predict the output of this code
42
49
7
error
