Showing 41–50 of 55 questions
What is the difference between Stack and Queue?
A
Both are the same
B
Stack uses LIFO, Queue uses FIFO
C
Stack uses FIFO, Queue uses LIFO
D
No structural difference
Correct Answer:
B. Stack uses LIFO, Queue uses FIFO
Explanation:
Stack (Last In First Out) removes the most recently added element. Queue (First In First Out) removes elements in the order they were added.
What does SQL stand for?
A
Standard Query Language
B
Structured Query Language
C
System Quick Language
D
Software Query Logic
Correct Answer:
B. Structured Query Language
Explanation:
SQL stands for Structured Query Language, used for database operations.
What is Git used for?
A
Web design
B
Version control and source code management
C
Database administration
D
System security
Correct Answer:
B. Version control and source code management
Explanation:
Git is a version control system used to track changes in source code and collaborate with other developers.
What is the main principle of OOP (Object-Oriented Programming)?
A
Writing code in linear fashion
B
Organizing code into reusable objects with properties and methods
C
Using only functions
D
Avoiding data structures
Correct Answer:
B. Organizing code into reusable objects with properties and methods
Explanation:
OOP is based on organizing code into objects that contain both data (properties) and functions (methods).
What is a 'Constructor' in programming?
A
A method that destroys objects
B
A special method that initializes objects
C
A variable declaration
D
A loop structure
Correct Answer:
B. A special method that initializes objects
Explanation:
A constructor is a special method called when an object is created to initialize its properties.
What is the difference between '==' and '===' in JavaScript?
A
No difference
B
'==' checks value, '===' checks value and type
C
'==' checks type, '===' checks value
D
'===' is only for strings
Correct Answer:
B. '==' checks value, '===' checks value and type
Explanation:
'==' is loose equality (compares value only), while '===' is strict equality (compares both value and type).
What is Cloud Computing?
A
Computing using computers in the clouds
B
On-demand delivery of computing resources over the internet
C
A type of operating system
D
A weather monitoring system
Correct Answer:
B. On-demand delivery of computing resources over the internet
Explanation:
Cloud Computing is the on-demand delivery of computing resources (servers, storage, databases) over the internet.
What does DevOps stand for?
A
Development Operations
B
Device Operations
C
Deployment Operations
D
Development Optimization
Correct Answer:
A. Development Operations
Explanation:
DevOps stands for Development Operations and refers to practices combining software development and IT operations.
What is the purpose of a 'Loop' in programming?
A
To define functions
B
To repeat a block of code multiple times
C
To declare variables
D
To import libraries
Correct Answer:
B. To repeat a block of code multiple times
Explanation:
A loop allows you to repeat a block of code multiple times based on a condition.
What is Cybersecurity?
A
Protecting networks from physical damage
B
Protecting computer systems from digital attacks and data theft
C
Creating network cables
D
Managing computer hardware
Correct Answer:
B. Protecting computer systems from digital attacks and data theft
Explanation:
Cybersecurity is the practice of protecting computer systems and networks from digital attacks, malware, and unauthorized access.