Showing 21–30 of 55 questions
What does the acronym 'API' stand for?
A
Application Programming Interface
B
Advanced Protocol Integration
C
Application Process Identifier
D
Automated Programming Implementation
Correct Answer:
A. Application Programming Interface
Explanation:
API stands for Application Programming Interface, a set of rules for software interaction
Which of these is NOT a programming language?
A
Java
B
Python
C
HTML
D
JavaScript
Explanation:
HTML is a markup language, not a programming language. Others are programming languages
In OOPS, what does 'inheritance' allow you to do?
A
Create multiple objects
B
Derive a new class from an existing class
C
Combine two classes
D
Delete a class
Correct Answer:
B. Derive a new class from an existing class
Explanation:
Inheritance allows a new class to be derived from an existing class, inheriting its properties and methods
What is the correct SQL syntax to select all records from a table named 'Students'?
A
SELECT * TABLE Students;
B
SELECT * FROM Students;
C
FETCH * FROM Students;
D
GET * FROM Students;
Correct Answer:
B. SELECT * FROM Students;
Explanation:
The correct SQL syntax is 'SELECT * FROM table_name;'
What will be the output of: print(5 // 2) in Python?
Explanation:
The // operator is floor division. 5 // 2 = 2 (integer division, rounded down)
Which data structure uses LIFO (Last In First Out) principle?
A
Queue
B
Stack
C
Array
D
Linked List
Explanation:
Stack follows LIFO principle where the last element added is the first to be removed
What is the main purpose of a constructor in a class?
A
To delete objects
B
To initialize objects
C
To perform calculations
D
To print data
Correct Answer:
B. To initialize objects
Explanation:
A constructor is used to initialize objects of a class with default or specified values
In Java, which keyword is used to prevent inheritance?
A
private
B
protected
C
final
D
static
Explanation:
The 'final' keyword prevents a class from being subclassed or inherited
What is the main difference between ArrayList and LinkedList in Java?
A
ArrayList is faster for random access
B
LinkedList is faster for random access
C
Both have same performance
D
ArrayList uses more memory
Correct Answer:
A. ArrayList is faster for random access
Explanation:
ArrayList provides O(1) random access, while LinkedList provides O(n) access
What does 'HTTP' stand for?
A
HyperText Transfer Protocol
B
High Transfer Text Protocol
C
Hyper Transfer Type Protocol
D
Hyper Text Type Protocol
Correct Answer:
A. HyperText Transfer Protocol
Explanation:
HTTP stands for HyperText Transfer Protocol, the foundation of data communication on the web