#1
Which of the following is NOT a programming paradigm?
Imperative
Object-Oriented
Relational
Functional
#2
In Python, what will be the output of the following code?
x = 5
y = 2
print(x // y)
#3
What does the acronym 'SQL' stand for?
Structured Query Language
Sequential Query Language
Structured Question Language
Sequential Question Language
#4
Which data structure follows the Last In, First Out (LIFO) principle?
Queue
Stack
Linked List
Heap
#5
What is the purpose of the 'else' statement in programming?
To execute a block of code only if a condition is true
To define a default case when all other conditions are not met
To initialize a variable
To terminate the program
#6
Which of the following is a dynamically typed programming language?
#7
What does the acronym 'JSON' stand for?
JavaScript Object Notation
Java Serialized Object Notation
JavaScript Object Naming
Java Serialized Object Naming
#8
Which of the following sorting algorithms has the best average-case time complexity?
Bubble Sort
Insertion Sort
Merge Sort
Selection Sort
#9
What does the term 'recursion' refer to in programming?
A function calling itself
A loop structure
An arithmetic operation
A conditional statement
#10
Which of the following is NOT a valid variable name in Python?
my_variable
1variable
_variable
variable_1
#11
Which of the following is a statically typed programming language?
#12
What is the purpose of a constructor in object-oriented programming?
To initialize the object's state
To perform arithmetic operations
To print output
To define class variables
#13
What is the main advantage of using version control systems like Git?
Easier debugging
Faster execution of programs
Efficient collaboration and tracking changes
Improved user interface
#14
What does the term 'polymorphism' refer to in object-oriented programming?
Ability to inherit multiple classes
Ability to have multiple constructors
Ability of a function to behave differently based on the object type
Ability to access multiple methods in a single call
#15
What does 'HTML' stand for in web development?
Hyper Text Markup Language
Hyperlink and Text Manipulation Language
High-level Text Management Language
Hyper Transfer Markup Language
#16
In object-oriented programming, what is encapsulation?
Binding data and methods that manipulate the data into a single unit
Making a method or variable accessible outside the class
Creating multiple instances of a class
Overriding a superclass method in a subclass
#17
What does 'URL' stand for in web development?
Uniform Resource Locator
Unified Request Language
Universal Reference Language
Unified Resource Language
#18
What is the main difference between 'GET' and 'POST' HTTP methods?
GET is used for submitting forms, while POST is used for requesting data
GET appends data to the URL, while POST sends data in the request body
GET requests are secure, while POST requests are not
GET can only retrieve data, while POST can both retrieve and submit data
#19
What does the acronym 'IDE' stand for?
Integrated Design Environment
Integrated Development Environment
Interactive Development Environment
Intelligent Development Environment
#20
What is the purpose of the 'yield' keyword in Python?
To terminate a function
To return a value from a generator function
To define a class method
To raise an exception
#21
In C++, what keyword is used to dynamically allocate memory?
#22
What does the acronym 'API' stand for in programming?
Application Programming Interface
Application Process Indicator
Algorithmic Programming Interface
Automated Program Invocation
#23
What is the purpose of the 'break' statement in loops?
To exit the loop immediately
To skip the current iteration and move to the next
To repeat the loop indefinitely
To execute a block of code when a condition is met
#24
What is the purpose of the 'finally' block in exception handling?
To handle exceptions that are thrown in the try block
To execute a block of code regardless of whether an exception is thrown or not
To catch specific exceptions and handle them
To prevent code from being executed
#25
Which of the following is NOT a valid data type in JavaScript?