wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Coding Quiz

Total questions: 111

Worksheet time: 56mins

Name
Class
Date
1.

1. Which Language is known as the 'mother of all languages"?

a)
Python
b)
Java
c)
C
d)
Ruby
2.

2. What Does OOP Stand for?

a)
Object
b)
Operation
c)
Orientation
d)
Output
3.

3. Which keyword is used to define a function in Python?

a)
func
b)
define
c)
def
d)
lambda
4.

4. Which data structure follows LIFO?

a)
Queue
b)
Array
c)
List
d)
Stack
5.

5. Which data structure follows FIFO?

a)
Tree
b)
Queue
c)
Stack
d)
Graph
6.

6. Which operator is used for logical AND in Python?

a)
&
b)
&&
c)
and
d)
AND
7.

7. Which loop runs until a condition becomes false?

a)
for
b)
do-while
c)
while
d)
foreach
8.

8. Which language runs in a web browser?

a)
Python
b)
JavaScript
c)
C++
d)
Rust
9.

9. Which protocol is used for secure communication over a network?

a)
FTP
b)
HTTP
c)
SMTP
d)
HTTPS
10.

10. Which SQL command is used to retrieve data?

a)
FETCH
b)
GET
c)
SELECT
d)
RETRIEVE
11.

11. Which programming paradigm focuses on objects?

a)
Procedural
b)
Functional
c)
OOP
d)
Declarative
12.

12. Which keyword is used to exit a loop in Python?

a)
continue
b)
stop
c)
break
d)
exit
13.

13. Which algorithmic complexity represents a binary search operation?

a)
0(n)
b)
0(log n)
c)
0(n^2)
d)
0(1)
14.

14. Which principle of OOP ensures that implementation details are hidden?

a)
Abstraction
b)
Encapsulation
c)
Inheritance
d)
Polymorphism
15.

15. Which type of memory stores static variables in C/C++ ?

a)
Stack
b)
Heap
c)
Code
d)
Data
16.

16. Which protocol is used to send emails?

a)
HTTP
b)
FTP
c)
SMTP
d)
POP3
17.

17. Which operation is used to get the remainder of a division?

a)
/
b)
//
c)
%
d)
^
18.

18. Which keyword is used to define an interface in Java?

a)
class
b)
struct
c)
interface
d)
abstract
19.

19. Which Python library is widely used for data analysis?

a)
Flask
b)
NumPy
c)
Pandas
d)
Matplotlib
20.

20. Which command is used to clone a repository in Git?

a)
git pull
b)
git push
c)
git clone
d)
git init
21.

21. Which language is primarly used for styling web pages?

a)
HTML
b)
CSS
c)
JavaScript
d)
Python
22.

22. Which loop is used to iterate over a sequence in Python?

a)
while
b)
do-while
c)
for
d)
loop
23.

23. Which keyword is uesd to declare a variable in JavaScript?

a)
var
b)
let
c)
const
d)
All of the above
24.

24. Which of these is a dynamically typed language?

a)
C++
b)
Java
c)
Python
d)
Rust
25.

25. Which operator is used to compare two values in Python?

a)
=
b)
==
c)
!=
d)
===
26.

26. Which keyword is used to exit a function in Python?

a)
stop
b)
exit
c)
break
d)
return
27.

27. Which of these is a valid boolean value in Python?

a)
yes
b)
1
c)
True
d)
On
28.

28. Which symbol is used for exponentiation in Python?

a)
^
b)
**
c)
*
d)
//
29.

29. Which keyword is used to import a module in Python?

a)
include
b)
import
c)
using
d)
require
30.

30. Which language is used to structure web content?

a)
HTML
b)
CSS
c)
JavaScript
d)
PHP
31.

31. Which tag is used to create a hyperlink in HTML?

a)

<p>

b)

<a>

c)

<h1>

d)

<link>

32.

32. Which protocol is used to transfer web pages?

a)
FTP
b)
SMTP
c)
HTTP
d)
TCP
33.

33. Which unit is relative to the font size of the root element in CSS?

a)
px
b)
em
c)
rem
d)
%
34.

34. Which keyword is used to define a function in Python?

a)
function
b)
func
c)
def
d)
define
35.

35. Which symbol is used to start a comment in Python?

a)
//
b)
#
c)
--
d)
/**/
36.

36. Which function is used to display output in Python?

a)
print()
b)
echo()
c)
display()
d)
write()
37.

37. Which operator is used for floor division in Python?

a)
/
b)
%
c)
//
d)
**
38.

38. Which Python keyword is used to handle exceptions?

a)
try
b)
catch
c)
throw
d)
finally
39.

39. Which Python method is used to convert a string to lowercase?

a)
.upper()
b)
.lower()
c)
.capitalize()
d)
.case()
40.

40. Which keyword is used to exit a loop in Python?

a)
stop
b)
exit
c)
break
d)
end
41.

41. Which keyword is used to declare a variable that cannot be reassigned?

a)
var
b)
let
c)
const
d)
define
42.

42. Which symbol is used to add single-line comments in JavaScript?

a)
#
b)
//
c)
$
d)
--
43.

43. Which method is used to print output to the console in JavaScript?

a)
print()
b)
echo()
c)
console.log()
d)
write()
44.

44. Which operator is used to check both value and type equality in JavaScript?

a)
==
b)
===
c)
=
d)
!==
45.

45. Which loop is best suited for iterating over object properties in JavaScript?

a)
for
b)
while
c)
foreach
d)
for...in
46.

46. Which keyword is used to define a class in Java?

a)
struct
b)
object
c)
class
d)
interface
47.

47. Which method serves as the entry point for a Java program?

a)
start()
b)
run()
c)
init()
d)
main()
48.

48. Which access modifier allows access only within the same class in Java?

a)
public
b)
protected
c)
private
d)
default
49.

49. Which keyword is used to create an object in Java?

a)
new
b)
create
c)
init
d)
object
50.

50. Which keyword is used to inherit a class in Java?

a)
implements
b)
extends
c)
inherits
d)
super
51.

51. Resolution of externally defined symbol is performed by

a)
Assembler
b)
Compiler
c)
Loader
d)
Linker
52.

52. Non modifiable procedures are called

a)
top down procedures
b)
re-entrant procedures
c)
concurrent procedures
d)
serially usable procedures
53.

53. The process of initalizing a microcomputer with its operating system is called

a)
boot recording
b)
warm booting
c)
booting
d)
cold booting
54.

54. A front end processor is usually used in

a)
multiprocessing
b)
timesharing
c)
virtual storage
d)
multiprogramming
55.

55. A system program that sets up an executable program in main memory ready for execution is

a)
loader
b)
text editor
c)
linker
d)
assembler
56.

56. The software which can be legally compiled and often used for free is called

a)
mindware
b)
firmware program
c)
shareware program
d)
public domain program
57.

57. A data item that cannot be divided into sub items is known as

a)
Elementary data item
b)
Group data item
c)
Primary key
d)
Primary data item
58.

58. Which of the following data structure is used to represent a relationship between pairs,where relationship is not hierarchical

a)
Priority queue
b)
Heap
c)
Tree
d)
Graph
59.

59. What ate bitwise operators?

a)
&
b)
!
c)
^
d)
All ( a, b and c)
60.

60. Binary plus (+) and Binary minus(-) are ___ operator.

a)
Additive
b)
Multiplicative
c)
Shift
d)
Bitwise
61.

61. What is the length of double data type

a)
8
b)
16
c)
32
d)
64
62.

62. Additive, Multiplicative , Shift, Bitwise logical and assignment operators is ________ operator

a)
conditional
b)
relational
c)
unary
d)
binary
63.

63. ______ a/secret code that prevent other users from using our accounts

a)
internet
b)
network
c)
password
d)
user
64.

64. The device that accomplishes modulation-demodulation process is called a________

a)
Momde
b)
Demom
c)
Modem
d)
Momem
65.

65. _______ translate HTML documents of the website and allow to view it on the screen

a)
web browse
b)
Web
c)
First page
d)
Homepage
66.

66. ______ is a multimedia portion of the internet

a)
Host
b)
WWW
c)
Webpage
d)
Data
67.

67. Computer program are written in a high level programming language , however the human readable version of a program is called

a)
Application
b)
Hard drive
c)
instruction set
d)
Source code
68.

68. Language which can easily interact with the hardware are called

a)
Middle level language
b)
Low level language
c)
All of the above
69.

69. Which of the following is not characteristic of COBOL?

a)
it is very readable language
b)
it had limited facilities for mathematical notation
c)
it is a very efficient in terms of coding and execution
d)
it is a very standardised language
70.

70. What is the maximum resolution supported by VGA adapter

a)
450 x 300
b)
640 x 200
c)
640 x 480
d)
1024 x 768
71.

71. The C language allow argument to be passed

a)
Only can by value
b)
Only cvall by reference
c)
Both call by value as well as call by reference
d)
None of the above
72.

72. _____ punctuator is used to treat statement as comments.

a)
/
b)
//
c)
+
d)
*
73.

73. The minimum value stored in an integer variable is

a)
32780
b)
-32767
c)
32769
d)
-32768
74.

74. GB stands for

a)
Gilobit
b)
Gilobyte
c)
Gigabit
d)
Gigabyte
75.

75. The operator ______ is called the insertion operator or put to operator.

a)
>
b)
<
c)
>>
d)
<<
76.

76. the output devices make it possible to

a)
Scan data
b)
Store data
c)
View or print data
d)
Input data
77.

77. Pick the odd one

a)
Keybord
b)
Printer
c)
Scanner
d)
Mouse
78.

78. The index value for an element in an array is indicated within ___ brackets

a)
/*
b)
( )
c)
[ ]
d)
{ }
79.

79. Every bite in the computer's memory has an

a)
null
b)
address
c)
0 to 1
d)
data
80.

80. How many bits are used to store data starting from right extreme

a)
15
b)
16
c)
32
d)
64
81.

81. What problem is solved by Dijkstra banker's algorithm

a)
cache coherence
b)
deadlock avoidance
c)
deadlock recovery
d)
mutual exclusion
82.

82. Most of the commonly available personal computers/laptops have a keyboard popularly known as

a)
UCLIF
b)
ALTER
c)
QOLTY
d)
QWERTY
83.

83. Which of these is a point-and-draw device?

a)
Keyboard
b)
Printer
c)
Scanner
d)
Mouse
84.

84. ______ is processed by the computer into information

a)
Alphabets
b)
Pictures
c)
Number
d)
Data
85.

85. The CPU also called the ___ when talking about PCs does vast majority of the processing for a computer

a)
Macro processor
b)
Micro processor
c)
Memoery system
d)
RAM
86.

86. The time a device takes to locate data and instruction and makes them available to CPU is known as

a)
Clock speed
b)
Access time
c)
A processing cycle
d)
CPU speed
87.

87. Which of the following convers all the statements in a program in a single batch and the resulting collecting of instruction is placed in a new file

a)
Converter
b)
Instruction
c)
Compiler
d)
Interpreter
88.

88. Holding the mouse button down while moving an object of text is known as

a)
Highlighting
b)
Dropping
c)
Dragging
d)
Moving
89.

89. Static and register variables are automatically initialized to m____ value when they are declared.

a)
0
b)
1
c)
2
d)
3
90.

90. A computer is

a)
is an intelligent machine
b)
Can get tired easily
c)
May forget if you give it too much data
d)
none of above
91.

91. The term ____ refers to any computer component that is required to perform work

a)
Resource
b)
Source code
c)
Kernel
d)
Bootstrap
92.

92. What is the name given to the process of initializing a personal computer with its operating system

a)
Booting
b)
Kaulting
c)
Roasting
d)
Rooting
93.

93. The long int , signed long int has _____ bytes.

a)
2
b)
3
c)
4
d)
8
94.

94. Video controller

a)
controls the resolution of images on screen
b)
controls the signals to be sent and received from processor for display
c)
is responsible for allocating pixels for formation of images
d)
handles the entire electronic work behind formation of images on the screen
95.

95. _______ key is the example of toggle key

a)
Escape
b)
Caps lock
c)
control
d)
shift
96.

96. Which of the following is not a function of the controls unit

a)
Direct operations
b)
Interpret Instructions
c)
execute instructions
d)
Read instructions
97.

97. the Turbo C implementation of C language supports

a)
A. High level file 1/0
b)
B. System level file 1/0
c)
C. Both a and b
d)
D. Executable file only
98.

98. Which of the following statement about function of statement about function of false

a)
A function can call itself
b)
A function can call another function
c)
Constants can appear in the formal argument list
d)
More than one function is allowed in a program unit
99.

99. ______ creates branches for multiple alternatives natives section of code, depending on the value of a single variables

a)
while
b)
for
c)
if
d)
switch
100.

100. The number of elements in a 2 dimensional array is determined by multiplying the number of_____ with number of _______

a)
row , columns
b)
row , row
c)
columns , columns
d)
rows , columns
101.

101. Computer languages sed for calculation is

a)
BASIC
b)
C++
c)
LOGO
d)
FORTRAN
102.

102.The languages used for development of variables games is

a)
C
b)
JAVA
c)
SQL
d)
PHP
103.

103. The address of variable can be obtained using _____ operator

a)
*
b)
&
c)
?
d)
;
104.

104. If one or more structure are other structures , then the structures , the the structures is known as

a)
Nested structure
b)
Structured struture
c)
Invalid structure
d)
Self referential structure
105.

105. Which operator requires three operands?

a)
Unary
b)
Binary
c)
Ternary
d)
Bitwise
106.

106. The constant that should not have fractional part is

a)
Float
b)
Double
c)
Integer
d)
Exponent
107.

107. _____is usually used to exchange messages and data files

a)
Electronic mail
b)
Hyberlink
c)
Internet
d)
Website
108.

108. All organizations create duplicate copies of critical data and files in the storage device and called file _____ or file _____

a)
Archiving , backup
b)
Archiving , retrieving
c)
Archiving , reading
d)
Retrieving , reading
109.

109. Part of a program where the shared memory is accessed and which should be executed indivisibly , is called

a)
mutual exclusion
b)
critical section
c)
directory
d)
semaphores
110.

110. The best way to find an item in an unsorted implemented using an array list is with

a)
Binary search
b)
Linear search
c)
Direct search
d)
Random search
111.

111. OPERATING SYSTEMS

a)
enables the programmer to draw a flow chart
b)
provides a layer , user friendly interface
c)
links a program with subroutine it references
d)
all of these