wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

BYTE_BATTLE - NOVA-TECH 2025

Total questions: 68

Worksheet time: 17mins

Name
Class
Date
1.

A program runs a loop from 1 to 100 and prints numbers divisible by both 4 and 6. How many numbers will be printed?

a)

4

b)

6

c)

8

d)

10

2.

If 3 → 27, 4 → 64, 5 → 125, then 7 → ?

a)

343

b)

240

c)

256

d)

512

3.

Consider the Python function shown in the diagram:

Time complexity of func(n) is:

a)

O(log n)

b)

O(n)

c)

O(n log n)

d)

O(2n)O(2^n)

4.

Which data structure is best suited to check balanced parentheses in an expression?

a)

Queue

b)

Stack

c)

Linked List

d)

Tree

5.

Which scheduling algorithm may cause starvation?

a)

Round Robin

b)

First Come First Serve

c)

Shortest Job First

d)

Priority Scheduling

6.

Which of the following sorting algorithms is NOT stable?

a)

Merge Sort

b)

Bubble Sort

c)

Insertion Sort

d)

Quick Sort

7.

For the C++ code shown in the diagram, what happens?

a)

Compiles and runs

b)

Compilation error

c)

Runtime error

d)

Undefined behavior

8.

Which HTML element is inline by default?

a)

<div>

b)

<section>

c)

<span>

d)

<article>

9.

Who developed the Python programming language?

a)

Dennis Ritchie

b)

James Gosling

c)

Guido van Rossum

d)

Bjarne Stroustrup

10.

In which year was Python first released?

a)

1985

b)

1989

c)

1991

d)

2000

11.

Python was named after which of the following?

a)

A type of snake

b)

A Greek god

c)

A comedy TV show

d)

A mathematical term

12.

Python was originally developed at which organization?

a)

Microsoft

b)

Google

c)

CERN

d)

Centrum Wiskunde & Informatica (CWI)

13.

Which version of Python introduced significant changes and broke backward compatibility?

a)

Python 1.0

b)

Python 2.0

c)

Python 3.0

d)

Python 3.6

14.

Who invented HTML?

a)

Bill Gates

b)

Tim Berners-Lee

c)

Steve Jobs

d)

Marc Andreessen

15.

In which year was HTML first introduced?

a)

1989

b)

1991

c)

1995

d)

2000

16.

HTML was originally developed for what purpose?

a)

Creating desktop applications

b)

Designing graphics

c)

Sharing scientific documents

d)

Game development

17.

HTML stands for:

a)

High Text Machine Language

b)

Hyper Tool Markup Language

c)

Hyper Text Markup Language

d)

Hyperlinks and Text Management Language

18.

Which version of HTML introduced support for audio and video without plugins?

a)

HTML 2.0

b)

HTML 3.2

c)

HTML 4.01

d)

HTML5

19.

Who is known as the “Father of Artificial Intelligence”?

a)

Alan Turing

b)

John McCarthy

c)

Marvin Minsky

d)

Herbert A. Simon

20.

In which year was the term “Artificial Intelligence” first coined?

a)

1945

b)

1950

c)

1956

d)

1965

21.

The term Artificial Intelligence was first introduced at which event?

a)

Stanford Conference

b)

Dartmouth Conference

c)

MIT Symposium

d)

Turing Seminar

22.

What was the main focus of early AI research?

a)

Web development

b)

Mobile applications

c)

Symbolic reasoning and problem solving

d)

Social media algorithms

23.

Which CSS property is used to change the text color of an element?

a)

font-style

b)

text-color

c)

color

d)

text-decoration

24.

Which CSS property controls the space between the content and the border of an element?

a)

margin

b)

padding

c)

border

d)

outline

25.

How do you select an element with the id header in CSS?

a)

.header

b)

#header

c)

header

d)

*header

26.

Which CSS property is used to create space outside an element’s border?

a)

padding

b)

margin

c)

outline

d)

width

27.

Which of the following is used to securely transfer files over a network?

a)

FTP

b)

HTTP

c)

SFTP

d)

SMTP

28.

Which Python function is used to encrypt passwords securely?

a)

encode()

b)

hash()

c)

bcrypt.hash()

d)

password()

29.

Which HTTP method should be used to securely send login data?

a)

GET

b)

POST

c)

PUT

d)

DELETE

30.

What will the following SQL query return? SELECT COUNT(DISTINCT department) FROM employees WHERE salary > 50000;

a)

Total number of employees

b)

Number of employees earning more than 50,000

c)

Number of unique departments where salary is above 50,000

d)

Average salary of employees

31.

What is the purpose of the HAVING clause in SQL?

a)

Filters rows before grouping

b)

Filters groups after GROUP BY

c)

Sorts the result set

d)

Limits the number of rows

32.

Which JOIN will return all records from the left table and matching records from the right table?

a)

INNER JOIN

b)

RIGHT JOIN

c)

FULL JOIN

d)

LEFT JOIN

33.

Which of the following best explains abstraction in C++?

a)

Hiding implementation details and showing only essential features

b)

Binding data and functions together

c)

Using multiple functions with the same name

d)

Creating objects from classes

34.

Which situation can lead to ambiguity in multiple inheritance?

a)

Using virtual functions

b)

Inheriting from multiple base classes with common data members

c)

Using protected members

d)

Overloading constructors

35.

What is the main disadvantage of using pointers in C++?

a)

Increased execution speed

b)

Efficient memory usage

c)

Risk of memory leaks and dangling pointers

d)

Improved code readability

36.

Which of the following is resolved at run time in C++?

a)

Function overloading

b)

Operator overloading

c)

Virtual function calls

d)

Inline functions

37.

Which concept allows C++ to support both procedural and object-oriented programming?

a)

Polymorphism

b)

Hybrid language feature

c)

Encapsulation

d)

Templates

38.

Who is known as the father of the C programming language?

a)

Dennis Ritchie

b)

Ken Thompson

c)

James Gosling

d)

Bjarne Stroustrup

39.

C programming language was developed at which organization?

a)

MIT

b)

Bell Laboratories

c)

Microsoft

d)

IBM

40.

In which year was C language developed?

a)

1980

b)

1991

c)

1965

d)

1972

41.

C language was primarily developed for which purpose?

a)

Game development

b)

Web development

c)

Mobile applications

d)

System programming

42.

Which language influenced the development of C?

a)

Pascal

b)

Java

c)

Python

d)

B Language

43.

Which of the following is NOT a feature of C?

a)

Object-Oriented Programming

b)

Fast execution

c)

Portability

d)

Low-level access

44.

Which header file is required for input and output in C?

a)

string.h

b)

math.h

c)

stdlib.h

d)

stdio.h

45.

Which data type occupies the least memory in C?

a)

float

b)

double

c)

int

d)

char

46.

Which operator is used to access the value at a pointer address?

a)

->

b)

%

c)

*

d)

&

47.

Which loop is guaranteed to execute at least once?

a)

while

b)

for

c)

nested loop

d)

do-while

48.

What will be the output? c int x = 10; printf("%d", x++);

a)

11

b)

Error

c)

9

d)

10

49.

What is the output in C ?

printf("%d", sizeof(char));

a)

Depends on compiler

b)

2

c)

4

d)

1

50.

Which keyword is used to define a constant in C?

a)

define

b)

static

c)

final

d)

const

51.

What will be printed? c int a = 5; printf("%d", a * a);

a)

15

b)

10

c)

30

d)

25

52.

Which function is used to allocate memory dynamically?

a)

callocx()

b)

alloc()

c)

memory()

d)

malloc()

53.

What does NULL represent in C?

a)

Invalid memory address

b)

Garbage value

c)

Empty character

d)

Random value

54.

What is the index of the first element in an array?

a)

-1

b)

1

c)

Depends on size

d)

0

55.

Which keyword is used to stop a loop immediately?

a)

continue

b)

stop

c)

exit

d)

break

56.

For the following C code, what will be printed?

a)

123

b)

Infinite loop

c)

0123

d)

012

57.

Which of the following is NOT a storage class in C?

a)

register

b)

mutable

c)

auto

d)

static

58.

Who developed JavaScript?

a)

Dennis Ritchie

b)

Brendan Eich

c)

Tim Berners-Lee

d)

James Gosling

59.

What is Artificial Intelligence?

a)

Artificial Intelligence is a field that aims to develop intelligent machines

b)

Artificial Intelligence is a field that aims to make humans more intelligent

c)

Artificial Intelligence is a field that aims to improve the security

d)

Artificial Intelligence is a field that aims to mine the data

60.

Who is the inventor of Artificial Intelligence?

(a)  

61.

Which of the following is the branch of Artificial Intelligence?

a)

Full-Stack Developer

b)

Cyber forensics

c)

Machine Learning

d)

Network Design

62.

What is the goal of Artificial Intelligence?

a)

To solve real-world problems

b)

To solve artificial problems

c)

To extract scientific causes

d)

To explain various sorts of intelligence

63.

Which of the following is an application of Artificial Intelligence?

a)

It helps to exploit vulnerabilities to secure the firm

b)

Easy to create a website

c)

Language understanding and problem-solving (Text analytics and NLP)

d)

It helps to deploy applications on the cloud

64.

What is the function of an Artificial Intelligence “Agent”?

a)

Work without the direct interference of the people

b)

Mapping of goal sequence to an action

c)

Mapping of precept sequence to an action

d)

Mapping of environment sequence to an action

65.

Which of the following is not the commonly used programming language for Artificial Intelligence?

a)

Perl

b)

Java

c)

PROLOG

d)

LISP

66.

Which of the following can improve the performance of an AI agent?

a)

Perceiving

b)

Learning

c)

Observing

d)

All of the mentioned

67.

Which of the following is an example of artificial intelligent agent/agents?

a)

Autonomous Spacecraft

b)

Human

c)

Robot

d)

All of the mentioned

68.

A.M. turing developed a technique for determining whether a computer could or could not demonstrate the artificial Intelligence, Presently, this technique is called (a)