Font size
WorksheetsBYTE_BATTLE - NOVA-TECH 2025
Total questions: 68
Worksheet time: 17mins
A program runs a loop from 1 to 100 and prints numbers divisible by both 4 and 6. How many numbers will be printed?
4
6
8
10
If 3 → 27, 4 → 64, 5 → 125, then 7 → ?
343
240
256
512
Consider the Python function shown in the diagram:
Time complexity of func(n) is:
O(log n)
O(n)
O(n log n)
O(2n)
Which data structure is best suited to check balanced parentheses in an expression?
Queue
Stack
Linked List
Tree
Which scheduling algorithm may cause starvation?
Round Robin
First Come First Serve
Shortest Job First
Priority Scheduling
Which of the following sorting algorithms is NOT stable?
Merge Sort
Bubble Sort
Insertion Sort
Quick Sort
For the C++ code shown in the diagram, what happens?
Compiles and runs
Compilation error
Runtime error
Undefined behavior
Which HTML element is inline by default?
<div>
<section>
<span>
<article>
Who developed the Python programming language?
Dennis Ritchie
James Gosling
Guido van Rossum
Bjarne Stroustrup
In which year was Python first released?
1985
1989
1991
2000
Python was named after which of the following?
A type of snake
A Greek god
A comedy TV show
A mathematical term
Python was originally developed at which organization?
Microsoft
CERN
Centrum Wiskunde & Informatica (CWI)
Which version of Python introduced significant changes and broke backward compatibility?
Python 1.0
Python 2.0
Python 3.0
Python 3.6
Who invented HTML?
Bill Gates
Tim Berners-Lee
Steve Jobs
Marc Andreessen
In which year was HTML first introduced?
1989
1991
1995
2000
HTML was originally developed for what purpose?
Creating desktop applications
Designing graphics
Sharing scientific documents
Game development
HTML stands for:
High Text Machine Language
Hyper Tool Markup Language
Hyper Text Markup Language
Hyperlinks and Text Management Language
Which version of HTML introduced support for audio and video without plugins?
HTML 2.0
HTML 3.2
HTML 4.01
HTML5
Who is known as the “Father of Artificial Intelligence”?
Alan Turing
John McCarthy
Marvin Minsky
Herbert A. Simon
In which year was the term “Artificial Intelligence” first coined?
1945
1950
1956
1965
The term Artificial Intelligence was first introduced at which event?
Stanford Conference
Dartmouth Conference
MIT Symposium
Turing Seminar
What was the main focus of early AI research?
Web development
Mobile applications
Symbolic reasoning and problem solving
Social media algorithms
Which CSS property is used to change the text color of an element?
font-style
text-color
color
text-decoration
Which CSS property controls the space between the content and the border of an element?
margin
padding
border
outline
How do you select an element with the id header in CSS?
.header
#header
header
*header
Which CSS property is used to create space outside an element’s border?
padding
margin
outline
width
Which of the following is used to securely transfer files over a network?
FTP
HTTP
SFTP
SMTP
Which Python function is used to encrypt passwords securely?
encode()
hash()
bcrypt.hash()
password()
Which HTTP method should be used to securely send login data?
GET
POST
PUT
DELETE
What will the following SQL query return? SELECT COUNT(DISTINCT department) FROM employees WHERE salary > 50000;
Total number of employees
Number of employees earning more than 50,000
Number of unique departments where salary is above 50,000
Average salary of employees
What is the purpose of the HAVING clause in SQL?
Filters rows before grouping
Filters groups after GROUP BY
Sorts the result set
Limits the number of rows
Which JOIN will return all records from the left table and matching records from the right table?
INNER JOIN
RIGHT JOIN
FULL JOIN
LEFT JOIN
Which of the following best explains abstraction in C++?
Hiding implementation details and showing only essential features
Binding data and functions together
Using multiple functions with the same name
Creating objects from classes
Which situation can lead to ambiguity in multiple inheritance?
Using virtual functions
Inheriting from multiple base classes with common data members
Using protected members
Overloading constructors
What is the main disadvantage of using pointers in C++?
Increased execution speed
Efficient memory usage
Risk of memory leaks and dangling pointers
Improved code readability
Which of the following is resolved at run time in C++?
Function overloading
Operator overloading
Virtual function calls
Inline functions
Which concept allows C++ to support both procedural and object-oriented programming?
Polymorphism
Hybrid language feature
Encapsulation
Templates
Who is known as the father of the C programming language?
Dennis Ritchie
Ken Thompson
James Gosling
Bjarne Stroustrup
C programming language was developed at which organization?
MIT
Bell Laboratories
Microsoft
IBM
In which year was C language developed?
1980
1991
1965
1972
C language was primarily developed for which purpose?
Game development
Web development
Mobile applications
System programming
Which language influenced the development of C?
Pascal
Java
Python
B Language
Which of the following is NOT a feature of C?
Object-Oriented Programming
Fast execution
Portability
Low-level access
Which header file is required for input and output in C?
string.h
math.h
stdlib.h
stdio.h
Which data type occupies the least memory in C?
float
double
int
char
Which operator is used to access the value at a pointer address?
->
%
*
&
Which loop is guaranteed to execute at least once?
while
for
nested loop
do-while
What will be the output? c int x = 10; printf("%d", x++);
11
Error
9
10
What is the output in C ?
printf("%d", sizeof(char));
Depends on compiler
2
4
1
Which keyword is used to define a constant in C?
define
static
final
const
What will be printed? c int a = 5; printf("%d", a * a);
15
10
30
25
Which function is used to allocate memory dynamically?
callocx()
alloc()
memory()
malloc()
What does NULL represent in C?
Invalid memory address
Garbage value
Empty character
Random value
What is the index of the first element in an array?
-1
1
Depends on size
0
Which keyword is used to stop a loop immediately?
continue
stop
exit
break
For the following C code, what will be printed?
123
Infinite loop
0123
012
Which of the following is NOT a storage class in C?
register
mutable
auto
static
Who developed JavaScript?
Dennis Ritchie
Brendan Eich
Tim Berners-Lee
James Gosling
What is Artificial Intelligence?
Artificial Intelligence is a field that aims to develop intelligent machines
Artificial Intelligence is a field that aims to make humans more intelligent
Artificial Intelligence is a field that aims to improve the security
Artificial Intelligence is a field that aims to mine the data
Who is the inventor of Artificial Intelligence?
(a)
Which of the following is the branch of Artificial Intelligence?
Full-Stack Developer
Cyber forensics
Machine Learning
Network Design
What is the goal of Artificial Intelligence?
To solve real-world problems
To solve artificial problems
To extract scientific causes
To explain various sorts of intelligence
Which of the following is an application of Artificial Intelligence?
It helps to exploit vulnerabilities to secure the firm
Easy to create a website
Language understanding and problem-solving (Text analytics and NLP)
It helps to deploy applications on the cloud
What is the function of an Artificial Intelligence “Agent”?
Work without the direct interference of the people
Mapping of goal sequence to an action
Mapping of precept sequence to an action
Mapping of environment sequence to an action
Which of the following is not the commonly used programming language for Artificial Intelligence?
Perl
Java
PROLOG
LISP
Which of the following can improve the performance of an AI agent?
Perceiving
Learning
Observing
All of the mentioned
Which of the following is an example of artificial intelligent agent/agents?
Autonomous Spacecraft
Human
Robot
All of the mentioned
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)
