Sample Questions Upload
Sample Questions Upload
MCQ What is the use of the GROUP BY To group identical data To select data
clause?
A way to quickly
MCQ What is an index in DBMS? A copy of a table
locate data
A stored procedure
MCQ What is a trigger in DBMS? A function that automatically
executes
MCQ What is the purpose of the return To exit a loop To exit a function
statement in C?
What does the sizeof operator Returns the size of a Returns the size of a
MCQ
do? variable data type
Which function is used to read a
MCQ gets() scanf()
string in C?
Which loop is guaranteed to
MCQ for loop while loop
execute at least once?
How can you declare an array of
MCQ int arr[10]; int arr(10);
10 integers in C?
Which of the following
They store memory They cannot be
MCQ statements is true about
addresses dereferenced
pointers?
What will be the output of
MCQ A B
printf("%c", 'A' + 1);?
Which of the following is a logical
MCQ + -
operator in C?
MCQ What is the purpose of the break To exit a loop To skip an iteration
statement?
MCQ What is the purpose of the static To create instance variables To create class
keyword in Java? variables
MCQ What does the final keyword do Prevents method overriding Prevents inheritance
in Java?
MCQ What is the purpose of the super To call a superclass method To call a constructor
keyword in Java?
MCQ What does Thread.sleep(1000); Pauses execution for 1000 Creates a new thread
do in Java? milliseconds
MCQ What does the break statement Exits the loop Exits the method
do in Java?
Social Security
Social Security Number Age Gender 1
Number
A field in a table
that is primary
An index A null value A composite key 1
key in another
table
Second Normal
Third Normal Form BCNF Fifth Normal Form 1
Form
Atomicity
Atomic
Atomicity Consistency Atomicity Common Consistency
Consistency 1
Isolation Durability Integrity Data Isolation
Index Durability
Durability
To group
To delete data To create data To update data 1
identical data
A duplicate
A copy of another table A table of indexes A virtual table 1
record
To combine
To select
To update records To insert records records from two 1
records
tables
FULL OUTER
RIGHT JOIN CROSS JOIN FULL OUTER JOIN 1
JOIN
A way to quickly
A view A trigger A function 1
locate data
A stored
procedure that
A type of JOIN A type of key A primary key 1
automatically
executes
A key that
A primary key A foreign key An index consists of two or 1
more attributes
To filter data
To delete rows To sort data To update data 1
after grouping
#header #include
#include header #import <header> 1
<header> <header>
Declares a
Returns a value None Prints output 1
variable
30 1020 Error 30 1
& * :: . 1
Deallocates
Allocates memory Both 1 and 2 Both 1 and 2 1
memory
C 66 Error B 1
= &
def
func void
function_name(void) function_name( 1
function_name() function_name()
)
3 3 3 3 1
10 12 15 14 1
4 8 16 1 1
strlen() size() count() strlen() 1
0 null None 0 1
finally All of the above None of the above All of the above 1
Makes a variable constant All of the above None of the above All of the above 1
=== := -> == 1
1 0 Error 1 1
interface
class MyInterface {} All of the above None of the above 1
MyInterface {}
ClassName obj =
ClassName obj; Both 1 and 2 None of the above new 1
ClassName();
To refer to instance
All of the above None of the above All of the above 1
variables
public All of the above None of the above All of the above 1
0 10 2 1 1
Pauses execution
Waits for user
Ends the program None of the above for 1000 1
input
milliseconds
Concrete class All of the above None of the above All of the above 1
10 20 Error 1020 1
None of the
Both 1 and 2 Both 1 and 2 Both 1 and 2 1
above
void void
methodName() void {} None of the above 1
methodName {} methodName() {}
None of the
Error 10 is a number 10 is a number. 1
above
None of the
Both 1 and 2 Both 1 and 2 Both 1 and 2 1
above
None of the
String Both 1 and 3 void 1
above
None of the
Base All classes Object 1
above
Stops the
Continues the loop None of the above Exits the loop 1
program
None of the
Both 1 and 2 Both 1 and 2 Both 1 and 2 1
above
To indicate that a
To indicate that a variable None of the variable may
All of the above 1
may change unexpectedly above change
unexpectedly
Depends on the
0 None of the above null 1
type
Check between
2NF removes partial
1 Medium first and second
dependencies from a relation.
form
Row is another Tuple refers to a row or record
1 Easy
name in a table.
The WHERE clause is used to
1 Medium Focus on filtering filter records based on a
condition.
Focus on The DROP command removes a
1 Easy structure table and its data from the
deletion database.
MongoDB is a non-relational
1 Medium Focus on NoSQL
NoSQL database.
GROUP BY is used to group
Think
1 Medium rows that have the same values
aggregation
in specified columns.
DML stands for
Data INSERT is a DML command
1 Easy
Manipulation used to add new data to a table.
Language
Not a physical A view is a virtual table based on
1 Medium
table the result of a query.
Think about
1 Easy The output is 30.
arithmetic
1 1
Think about
1 Medium operator The output will be 14 due to
precedence operator precedence.
Think about
1 Easy string The output will be 30Hello.
concatenation
Think about error try, catch, and finally are used
1 Medium
handling for exception handling.
Think about data The size of an int in Java is
1 Easy
types always 4 bytes.
Think about The extends keyword is used to
1 Medium
inheritance inherit a class.
Think about
The default value depends on
1 Medium instance
the type of the variable.
variables
Think about
until is not a valid loop
1 Medium control
structures construct in Java.
Think about
1 Easy The output will be true.
boolean logic
Think about
1 Medium object The this keyword refers to the
orientation current instance of the class.
You can use
Think about type
1 Medium Integer.parseInt("123") to
conversion
convert a string to an integer.
Array is not a part of the
Think about
1 Medium Collections Framework; it is a
collections
basic data structure.
Think about An instance of a class is created
1 Easy object using ClassName obj = new
instantiation ClassName();.
Thread.sleep(1000); pauses
Think about
1 Medium the current thread for 1000
threading
milliseconds.
Think about
The output will be 10 is a
1 Easy string
concatenation number..