NEW
Font size
WorksheetsTECH QUIZ SHRUJAN 4.0
Total questions: 40
Worksheet time: 20mins
Which data structure is used in BFS?
Stack
Queue
Tree
Heap
In a max heap, which element is always at the root?
Maximum
Minimum
Random
Median
What is the height of a single node tree?
1
-1
0
None of these
Which is not a linear data structure?
Array
Stack
Queue
Graph
OUTPUT OF THE FOLLOWING QUESTION:
print(type(type(int)))
int
type
class
error
OUTPUT OF FOLLOWING PYTHON QUESTION:
print("Hello" * 3)
Error
Hello3
HelloHelloHello
3Hello
OUTPUT OF FOLLOWING QUESTION PYTHON:
print(len(" "))
0
1
Error
None of these
Which is faster in C?
Recursion
Iteration
Both same
Compiler dependent
Which keyword prevents modification in C?
static
const
volatile
extern
Which loop executes at least once in C?
for
while
do-while
if
What is the full form of stdio.h
Standard Input Output Header
Standard Input & Output Header
Standard Input or Output Header
Standard Input/Output Header
Which of these is NOT allowed in Java?
Multiple inheritance using interfaces
Method overloading
Operator overloading
Method overriding
Give output of following java code
String s1 = "Hello";
String s2 = new String("Hello");
System.out.println(s1 == s2);
true
false
False
True
OUTPUT OF FOLLOWING QUESTION IN JAVA:
System.out.println(5/2);
2.5
2
3
Error
Which exception is unchecked?
IOException
SQLException
NullPointerException
FileNotFoundException
JVM stands for:
Java Variable Machine
Java Virtual Machine
Java Verified Machine
Java Visual Machine
Which concept binds data and methods together?
Inheritance
Encapsulation
Polymorphism
Abstraction
Which is NOT an OOPS principle?
Encapsulation
Inheritance
Compilation
Polymorphism
Data hiding is achieved using:
public
protected
private
static
OUTPUT IN JS
console.log(0 == false);
true
false
Error
NaN
OUPUT OF JS:
console.log(2 ** 3);
6
8
9
ERROR
HTML STANDS FOR
Hyper Text Mark Language
High Text Machine Language
Hyper Tool Markup Language
Hyper Text Markup Language
Which tag is used for line break?
<B>
<BR>
<BREAK>
<H2>
HTML is:
Programming language
Markup Language
Scripting Language
Query Language
A foreign key:
Can be NULL
Can have duplicate values
References primary key
All of the above
Deadlock occurs when:
Two transactions wait for each other
Transaction fails
System crashes
Data is lost
FULL FORM OF
DML AND DDL
Data Manipulation Language and Data Definition Language
Data Manipulate Languge and Data Define Language
Data Manipulation Language
Data Definition Language
Which SQL command is used to remove all rows but keep table structure?
Delete
Drop
Truncate
Remove
Which clause is used to filter grouped data?
Where
Group by
Having
Order by
SELECT COUNT(*) FROM table_name;
What it gives?
Count of non-NULL values
Count of rows
Count of columns
Count of distinct rows
Which SQL constraint ensures unique values?
Primary key
Foreign key
Default
Distinct
What does CSS stand for?
Creative Style Sheets
Computer Style Sheets
Colorful Style Sheets
Cascading Style Sheets
Which HTML element is used to define the title of a document?
<title>
<head>
<meta>
<header>
Which of the following is a characteristic of a stack?
Last In First Out
First In First Out
Random Access
None of the above
What is the output of the following Python code:
print(type([]) is list)
None of these
True
False
Error
Which of the following is not a valid SQL data type?
INTEGER
VARCHAR
FLOAT
STRING
Which of the following is a feature of object-oriented programming?
Global variables
Procedural abstraction
Static typing
Encapsulation
What does the 'break' statement do in a loop?
Exits the loop
Restarts the loop
Pauses the loop
Continues to the next iteration
What does the 'continue' statement do in a loop?
Pauses the loop
Skips the current iteration
Restarts the loop
Exits the loop
Which of the following is a method to convert a string to an integer in Python?
convert()
float()
str()
int()
