wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Technical Quiz

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

What is the use of RAM in a computer?

a)

Long-term storage

b)

 Temporary data storage

c)

To display images

d)

Connect peripherals

2.

What is the purpose of a file system in an OS?

a)

Store and retrieve files

b)

Manage tasks

c)

Connect devices

d)

Perform calculations

3.

How many function keys are there on a standard keyboard?

a)

10

b)

12

c)

15

d)

14

4.

What does USB stand for?

a)

Universal Serial Bus

b)

Universal Serial Bus

c)

United Serial Bus

d)

Uniform System Boot

5.

What does RAM stand for?

a)

Random Access Memory

b)

Read Access Memory

c)

Run Access Memory

d)

Read Alternate Memory

6.

What does HTML stand for?

a)

HyperText Markup Language

b)

HighText Machine Language

c)

Hyperloop Markup Language

d)

None of the above

7.

Which tag is used to create a hyperlink?

a)

<a>

b)

<link>

c)

<href>

d)

<hyper>

8.

What is the correct syntax to include a header file?

a)

#include "header.h"

b)

#include (header.h)

c)

 #import header

d)

import header.h

9.

What is Artificial Intelligence (AI)?

a)

A type of software that mimics human intelligence

b)

A programming language

c)

A hardware device

d)

A robot

10.

What is the purpose of Machine Learning?

a)

To manually program all tasks

b)

To allow machines to learn from data and improve automatically

c)

To replace all human jobs

d)

To make computer games

11.

 Which algorithm is commonly used for classification tasks in Machine Learning?

a)

K-Means

b)

Decision Trees

c)

Linear Regression

d)

Principal Component Analysis (PCA)

12.

Which of the following is an AI framework?

a)

TensorFlow

b)

PyTorch

c)

Scikit-Learn

d)

All of the above

13.

Which of the following is an example of a Reinforcement Learning algorithm?

a)

K-Means

b)

Q-Learning

c)

Random Forest

d)

Naïve Bayes

14.

   What will be the output of the following code?

Print(type([]) is list)

a)

 True

b)

False

c)

None

d)

Error

15.

What will happen if you try to compile a Java program with two main() methods in the same class?

a)

It will not compile

b)

It will throw a runtime exception

c)

It will execute without errors

d)

It will cause ambiguity

16.

Which of the following methods converts a string to lowercase in Python?

a)

toLower()

b)

lower()

c)

tolowercase()

d)

downcase()

17.

Which operator in C has the highest precedence?

a)

+

b)

*

c)

()

d)

=

18.

What will be the output of the following code?
#include <stdio.h>

int main() {

    int a = 10;

    printf("%d", ++a++);

    return 0;

a)

10

b)

11

c)

Compilation error

d)

Undefined behavior

19.

What is the difference between == and .equals() in Java?

a)

Both compare object references

b)

== checks reference equality, and .equals() checks value equality

c)

.equals() compares reference equality, and == checks value equality

d)

Both compare object values.

20.

 How do you apply CSS to an HTML document?

a)

Using <style> tags

b)

Using style attributes

c)

Linking an external stylesheet

d)

All of the above

21.

Who is considered the "Father of Artificial Intelligence"?

a)

Alan Turing

b)

 John McCarthy

c)

Andrew Ng

d)

Andrew Ng

22.

What is the file extension for C programs?

a)

.cprog

b)

.cpp

c)

.c

d)

.cp

23.

Which of the following is an application of AI?

a)

Virtual Assistants (e.g., Siri, Alexa)

b)

Social Media

c)

 Online Shopping

d)

All of the above

24.

Which of the following is NOT a type of Machine Learning?

a)

Supervised Learning

b)

Unsupervised Learning

c)

Reinforcement Learning

d)

Mechanical Learning

25.

    What will be the output of the following code?

X = [1, 2, 3]

Y = x

y.append(4)

print(x)

a)

[ 1, 2, 3]

b)

[1, 2, 3, 4]

c)

Error

d)

None

26.

       What does the len() function return?

a)

The number of elements in a list

b)

The sum of elements in a list

c)

The largest element in a list

d)

The smallest element in a list

27.

Which data structure works on the principle of Last In, First Out (LIFO)?

a)

Queue

b)

Stack

c)

Tree

d)

Graph

28.

Which one of the following is not a programming paradigm?

a)

Object-Oriented

b)

Procedural

c)

Functional

d)

Numerical

29.

Which layer of the OSI model is responsible for end-to-end data transmission?

a)

Physical

b)

Data Link

c)

Network

d)

Transport

30.

Which method is used to start a thread in Java?

a)

run()

b)

start()

c)

exeecute()

d)

init()

31.

In C, which operator is used to access the value stored at a pointer?

a)

*

b)

&

c)

%

d)

!

32.

What is the size of an int data type in most 32-bit compilers?

a)

1 byte

b)

2 byte

c)

4 byte

d)

8 byte

33.

Which header file is required to use the printf() function in C?

a)

stdlib.h

b)

stdio.h

c)

conio.h

d)

math.h

34.

Which HTML element is used to display a large title or heading?

a)

<h1>

b)

<title>

c)

<header>

d)

<head>

35.

Which of the following is not a valid access modifier in Java?

a)

public

b)

private

c)

protected

d)

default

36.

What is the default value returned by a Python function if no return statement is specified?

a)

Null

b)

0

c)

None

d)

False

37.

Which of the following is an immutable data type in Python?

a)

List

b)

Dictionary

c)

Set

d)

Tuple

38.

Which of the following can be used to create an inline anonymous function in Python?

a)

def

b)

lambda

c)

function

d)

anonymous

39.

Which keyword is used to declare a constant in C?

a)

const

b)

final

c)

constant

d)

immutable

40.

What is the correct HTML tag for inserting a line break?

a)

<lb>

b)

<br>

c)

<break>

d)

<newline>

41.

What does the __init__ method do in Python?

a)

Initializes a function

b)

Initializes a class instance

c)

Executes before a program starts

d)

Creates a new variable

42.

What is the correct way to declare a one-dimensional array in Java?

a)

int[5] arr;

b)

int arr[5];

c)

int arr[] = new int[5];

d)

int arr = new int[5];

43.

Which method is used to compare two strings in Java?

a)

compare()

b)

equals()

c)

match()

d)

compareTo()

44.

What is the output of the following code in C?

int a = 10, b = 20;

printf("%d", a > b ? a : b);

a)

10

b)

20

c)

Error

d)

0

45.

What is the correct syntax to declare a pointer in C?

a)

int ptr*;

b)

int *ptr;

c)

int ptr;

d)

int &ptr;

46.

Which HTML tag is used to define an unordered list?

a)

<ol>

b)

<ul>

c)

<li>

d)

<list>

47.

Which tag is used for adding a line horizontally across the webpage?

a)

<hr>

b)

<line>

c)

<break>

d)

<border>

48.

What does the continue keyword do in Python?

a)

Terminates the loop

b)

Skips the current iteration and moves to the next

c)

Repeats the current iteration

d)

Breaks out of a loop

49.

What does the final keyword mean when applied to a variable in Java?

a)

The variable is abstract

b)

The variable is inherited from a parent class

c)

The variable is static

d)

The variable cannot be modified after initialization

50.

Which of the following data types in C has the highest memory size?

a)

int

b)

float

c)

double

d)

char