Showing 1–10 of 22 questions
in IBM Questions
If the compound interest on ₹8,000 at 10% per annum for 2 years is compounded annually, find the compound interest earned.
A
₹1,680
B
₹1,800
C
₹800
D
₹1,600
Correct Answer:
A. ₹1,680
EXPLANATION
CI = P(1 + r/100)^n - P = 8000(1 + 10/100)^2 - 8000 = 8000(1.1)^2 - 8000 = 8000(1.21) - 8000 = 9,680 - 8,000 = ₹1,680.
What is the value of log₂(8)?
EXPLANATION
log₂(8) means 2^? = 8. Since 2³ = 8, the answer is 3
If a string in Python is assigned as s = 'hello', what is the output of s[1:4]?
A
'ell'
B
'llo'
C
'hell'
D
'ello'
EXPLANATION
String slicing s[1:4] returns characters from index 1 to 3 (4 is exclusive): 'e', 'l', 'l' = 'ell'
What is an exception in programming?
A
A feature that all programs must have
B
An error that occurs during program execution that disrupts normal flow
C
A special type of variable
D
A comment in the code
Correct Answer:
B. An error that occurs during program execution that disrupts normal flow
EXPLANATION
An exception is an event that occurs during program execution that disrupts the normal flow, requiring special handling
What does API stand for?
A
Application Programming Instruction
B
Application Programming Interface
C
Advanced Programming Integration
D
Application Process Integration
Correct Answer:
B. Application Programming Interface
EXPLANATION
API stands for Application Programming Interface - a set of rules that allows different applications to communicate
What is the main purpose of version control systems like Git?
A
To compress files
B
To track changes in code and enable collaboration
C
To encrypt code
D
To execute code
Correct Answer:
B. To track changes in code and enable collaboration
EXPLANATION
Version control systems track code changes over time and facilitate team collaboration by managing different versions
Which protocol is used for secure web communication?
A
HTTP
B
FTP
C
HTTPS
D
SMTP
EXPLANATION
HTTPS is HTTP with encryption/security using SSL/TLS protocols for secure communication
Which data structure uses LIFO (Last-In-First-Out)?
A
Queue
B
Stack
C
Array
D
Linked List
EXPLANATION
A Stack uses LIFO principle where the last element added is the first one to be removed
What is the output of: print(10 // 3) in Python?
EXPLANATION
The '//' operator performs floor division, which returns 3 (the integer part of 10/3)
Which of the following best describes SQL?
A
A programming language for web development
B
A language for managing and querying databases
C
A markup language for creating web pages
D
A platform for cloud computing
Correct Answer:
B. A language for managing and querying databases
EXPLANATION
SQL (Structured Query Language) is used for managing and querying relational databases