NEW
Font size
WorksheetsTechnical Quiz
Total questions: 50
Worksheet time: 25mins
What is the use of RAM in a computer?
Long-term storage
Temporary data storage
To display images
Connect peripherals
What is the purpose of a file system in an OS?
Store and retrieve files
Manage tasks
Connect devices
Perform calculations
How many function keys are there on a standard keyboard?
10
12
15
14
What does USB stand for?
Universal Serial Bus
Universal Serial Bus
United Serial Bus
Uniform System Boot
What does RAM stand for?
Random Access Memory
Read Access Memory
Run Access Memory
Read Alternate Memory
What does HTML stand for?
HyperText Markup Language
HighText Machine Language
Hyperloop Markup Language
None of the above
Which tag is used to create a hyperlink?
<a>
<link>
<href>
<hyper>
What is the correct syntax to include a header file?
#include "header.h"
#include (header.h)
#import header
import header.h
What is Artificial Intelligence (AI)?
A type of software that mimics human intelligence
A programming language
A hardware device
A robot
What is the purpose of Machine Learning?
To manually program all tasks
To allow machines to learn from data and improve automatically
To replace all human jobs
To make computer games
Which algorithm is commonly used for classification tasks in Machine Learning?
K-Means
Decision Trees
Linear Regression
Principal Component Analysis (PCA)
Which of the following is an AI framework?
TensorFlow
PyTorch
Scikit-Learn
All of the above
Which of the following is an example of a Reinforcement Learning algorithm?
K-Means
Q-Learning
Random Forest
Naïve Bayes
What will be the output of the following code?
Print(type([]) is list)
True
False
None
Error
What will happen if you try to compile a Java program with two main() methods in the same class?
It will not compile
It will throw a runtime exception
It will execute without errors
It will cause ambiguity
Which of the following methods converts a string to lowercase in Python?
toLower()
lower()
tolowercase()
downcase()
Which operator in C has the highest precedence?
+
*
()
=
What will be the output of the following code?
#include <stdio.h>
int main() {
int a = 10;
printf("%d", ++a++);
return 0;
10
11
Compilation error
Undefined behavior
What is the difference between == and .equals() in Java?
Both compare object references
== checks reference equality, and .equals() checks value equality
.equals() compares reference equality, and == checks value equality
Both compare object values.
How do you apply CSS to an HTML document?
Using <style> tags
Using style attributes
Linking an external stylesheet
All of the above
Who is considered the "Father of Artificial Intelligence"?
Alan Turing
John McCarthy
Andrew Ng
Andrew Ng
What is the file extension for C programs?
.cprog
.cpp
.c
.cp
Which of the following is an application of AI?
Virtual Assistants (e.g., Siri, Alexa)
Social Media
Online Shopping
All of the above
Which of the following is NOT a type of Machine Learning?
Supervised Learning
Unsupervised Learning
Reinforcement Learning
Mechanical Learning
What will be the output of the following code?
X = [1, 2, 3]
Y = x
y.append(4)
print(x)
[ 1, 2, 3]
[1, 2, 3, 4]
Error
None
What does the len() function return?
The number of elements in a list
The sum of elements in a list
The largest element in a list
The smallest element in a list
Which data structure works on the principle of Last In, First Out (LIFO)?
Queue
Stack
Tree
Graph
Which one of the following is not a programming paradigm?
Object-Oriented
Procedural
Functional
Numerical
Which layer of the OSI model is responsible for end-to-end data transmission?
Physical
Data Link
Network
Transport
Which method is used to start a thread in Java?
run()
start()
exeecute()
init()
In C, which operator is used to access the value stored at a pointer?
*
&
%
!
What is the size of an int data type in most 32-bit compilers?
1 byte
2 byte
4 byte
8 byte
Which header file is required to use the printf() function in C?
stdlib.h
stdio.h
conio.h
math.h
Which HTML element is used to display a large title or heading?
<h1>
<title>
<header>
<head>
Which of the following is not a valid access modifier in Java?
public
private
protected
default
What is the default value returned by a Python function if no return statement is specified?
Null
0
None
False
Which of the following is an immutable data type in Python?
List
Dictionary
Set
Tuple
Which of the following can be used to create an inline anonymous function in Python?
def
lambda
function
anonymous
Which keyword is used to declare a constant in C?
const
final
constant
immutable
What is the correct HTML tag for inserting a line break?
<lb>
<br>
<break>
<newline>
What does the __init__ method do in Python?
Initializes a function
Initializes a class instance
Executes before a program starts
Creates a new variable
What is the correct way to declare a one-dimensional array in Java?
int[5] arr;
int arr[5];
int arr[] = new int[5];
int arr = new int[5];
Which method is used to compare two strings in Java?
compare()
equals()
match()
compareTo()
What is the output of the following code in C?
int a = 10, b = 20;
printf("%d", a > b ? a : b);
10
20
Error
0
What is the correct syntax to declare a pointer in C?
int ptr*;
int *ptr;
int ptr;
int &ptr;
Which HTML tag is used to define an unordered list?
<ol>
<ul>
<li>
<list>
Which tag is used for adding a line horizontally across the webpage?
<hr>
<line>
<break>
<border>
What does the continue keyword do in Python?
Terminates the loop
Skips the current iteration and moves to the next
Repeats the current iteration
Breaks out of a loop
What does the final keyword mean when applied to a variable in Java?
The variable is abstract
The variable is inherited from a parent class
The variable is static
The variable cannot be modified after initialization
Which of the following data types in C has the highest memory size?
int
float
double
char
