WorksheetsSET 1 – Questions Only
Total questions: 25
Worksheet time: 13mins
What will be the output of print(2 ** 3) in Python?
8
6
9
5
Which header file is required for printf() in C?
stdio.h
conio.h
math.h
string.h
Which data structure follows LIFO principle?
Stack
Queue
Linked List
Tree
Which keyword is used to inherit a class in Java?
extends
implements
inherits
super
Which memory is volatile?
RAM
ROM
Hard Disk
Flash Memory
Which operator is used for floor division in Python?
//
/
%
**
Which loop executes at least once?
do-while loop
for loop
while loop
foreach loop
What does SQL JOIN do?
Combines rows from two or more tables based on a related column.
Deletes all rows from a table.
Sorts the data in a table alphabetically.
Creates a new table in the database.
Which symbol is used for single-line comment in C++?
//
#
/*
Which protocol is used for web communication?
HTTP
FTP
SMTP
SSH
What is the output of len([1,2,3,4]) in Python?
4
3
5
2
Which keyword creates object in Java?
new
create
object
make
Which OS is open source?
Linux
Windows
macOS
Solaris
Which device routes data packets?
Router
Switch
Modem
Hub
Which data type stores decimal values in Python?
float
int
str
bool
Which port number is used for HTTPS?
443
80
21
25
Which keyword stops a loop in Python?
break
stop
exit
end
Which is NOT an OOP principle?
Procedural programming
Encapsulation
Inheritance
Polymorphism
Which file extension is used for Java source code?
.java
.jav
.js
.class
Which memory is fastest?
Cache
RAM
Hard Disk
Flash Memory
What does API stand for?
Application Programming Interface
Advanced Programming Instruction
Automated Process Integration
Applied Protocol Interface
Which symbol is used for logical AND?
&&
||
&
!
Which command removes table data but keeps structure?
TRUNCATE
DROP
DELETE
ALTER
Which language is mainly used for system programming?
C
Python
JavaScript
Ruby
What is Git mainly used for?
Version control
Image editing
Web browsing
Video streaming
