WorksheetsAVINYA 2K25
Total questions: 19
Worksheet time: 10mins
Name
Class
Date
1.
What is the output of: print(2 ** 3 ** 2)?
a)
64
b)
512
c)
256
d)
36
2.
Which of these is a mutable data type in Python?
a)
tuple
b)
string
c)
list
d)
int
3.
What does the 'len()' function do?
a)
Returns length of an object
b)
Returns max value
c)
Returns min value
d)
None
4.
What is the output of: print(type([]))?
a)
<class 'list'>
b)
<class 'tuple'>
c)
<class 'dict'>
d)
<class 'set'>
5.
Which keyword is used for function in Python?
a)
fun
b)
define
c)
def
d)
function
6.
Which of these is not a primitive data type in Java?
a)
int
b)
float
c)
boolean
d)
String
7.
Which keyword is used to inherit a class in Java?
a)
this
b)
import
c)
extends
d)
inherits
8.
What is the default value of a boolean in Java?
a)
True
b)
FALSE
c)
null
9.
Which of these is used to handle exceptions in Java?
a)
try-catch
b)
goto
c)
throw-catch
d)
error-handler
10.
What is the size of int in Java?
a)
2 bytes
b)
4 bytes
c)
8 bytes
d)
Depends on system
11.
Which symbol is used to denote a preprocessor directive in C?
a)
#
b)
$
c)
@
d)
&
12.
What is the correct syntax to declare a pointer?
a)
int *ptr;
b)
int ptr*;
c)
pointer int ptr;
d)
int& ptr;
13.
Which function is used to print output in C?
a)
cout
b)
System.out.print
c)
printf
d)
cin
14.
What does 'int main()' return in C?
a)
char
b)
int
c)
float
d)
void
15.
Which header file is required for printf() function?
a)
stdio.h
b)
conio.h
c)
stdlib.h
d)
math.h
16.
Which tag is used to insert an image in HTML?
a)
<img>
b)
<image>
c)
<picture>
d)
<src>
17.
What is the correct HTML element for the largest heading?
a)
<h6>
b)
<head>
c)
<h1>
d)
<title>
18.
Which property is used to change the text color in CSS?
a)
text-color
b)
color
c)
font-color
d)
text-style
19.
Which CSS property controls the text size?
a)
font-style
b)
text-size
c)
font-size
d)
text-style
100 %
