What does the acronym 'API' stand for?
A Application Programming Interface B Advanced Protocol Integration C Application Process Identifier D Automated Programming Implementation
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
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
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;
The correct SQL syntax is 'SELECT * FROM table_name;'
What will be the output of: print(5 // 2) in Python?
A 2 B 2.5 C 3 D Error
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
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
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
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
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
HTTP stands for HyperText Transfer Protocol, the foundation of data communication on the web
Which of these is a NoSQL database?
A MySQL B PostgreSQL C MongoDB D Oracle
MongoDB is a NoSQL database. MySQL, PostgreSQL, and Oracle are relational SQL databases
In CSS, what does the 'z-index' property control?
A Font size B Text alignment C Stacking order of elements D Background color
z-index controls the stacking order of overlapping elements on a webpage
What will be the output of: console.log(typeof 5) in JavaScript?
A int B number C integer D numeric
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?
A 5 meters B 6 meters C 7 meters D 8 meters
30 meters / 5 = 6 meters per piece
If 30% of a number is 45, what is the number?
A 100 B 120 C 150 D 180
Let number = x. 30% of x = 45. 0.30x = 45. x = 0 45 .30 = 150
A box contains 3 red balls and 2 blue balls. What is the probability of drawing a red ball?
A 5 1 B 5 2 C 5 3 D 5 4
Total balls = 5. Red balls = 3. Probability = 5 3
If a square has a side of 5 cm, what is its area?
A 10 cm² B 20 cm² C 25 cm² D 30 cm²
Area of square = side² = 5² = 25 cm²
What is 15% of 200?
A 20 B 25 C 30 D 35
15% of 200 = (100 15 ) × 200 = 0.15 × 200 = 30
Two numbers are in the ratio 3:4. If their sum is 70, what are the numbers?
A 30, 40 B 35, 35 C 20, 50 D 25, 45
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?
A 6 B 8 C 12 D 24
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