What does the acronym 'API' stand for?
API stands for Application Programming Interface, a set of rules for software interaction
Which of these is NOT a programming language?
HTML is a markup language, not a programming language. Others are programming languages
In OOPS, what does 'inheritance' allow you to do?
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'?
The correct SQL syntax is 'SELECT * FROM table_name;'
What will be the output of: print(5 // 2) in Python?
The // operator is floor division. 5 // 2 = 2 (integer division, rounded down)
Advertisement
Which data structure uses LIFO (Last In First Out) principle?
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 constructor is used to initialize objects of a class with default or specified values
In Java, which keyword is used to prevent inheritance?
The 'final' keyword prevents a class from being subclassed or inherited
What is the main difference between ArrayList and LinkedList in Java?
ArrayList provides O(1) random access, while LinkedList provides O(n) access
What does 'HTTP' stand for?
HTTP stands for HyperText Transfer Protocol, the foundation of data communication on the web
Which of these is a NoSQL database?
MongoDB is a NoSQL database. MySQL, PostgreSQL, and Oracle are relational SQL databases
In CSS, what does the 'z-index' property control?
z-index controls the stacking order of overlapping elements on a webpage
What will be the output of: console.log(typeof 5) in JavaScript?
The typeof operator returns 'number' for numeric values in JavaScript
A rope of length 30 meters is cut into 5 equal parts. How long is each piece?
30 meters / 5 = 6 meters per piece
If 30% of a number is 45, what is the number?
Let number = x. 30% of x = 45. 0.30x = 45. x = 045.30 = 150
A box contains 3 red balls and 2 blue balls. What is the probability of drawing a red ball?
Total balls = 5. Red balls = 3. Probability = 53
If a square has a side of 5 cm, what is its area?
Area of square = side² = 5² = 25 cm²
What is 15% of 200?
15% of 200 = (10015) × 200 = 0.15 × 200 = 30
Two numbers are in the ratio 3:4. If their sum is 70, what are the numbers?
Let numbers be 3x and 4x. 3x + 4x = 70. 7x = 70. x = 10. Numbers are 30 and 40
What is the GCD of 24 and 36?
Factors of 24: 1,2,3,4,6,8,12,24. Factors of 36: 1,2,3,4,6,9,12,18,36. GCD = 12