Questions & Answers
Questions & Answers
Database Management
Networking Basics
A variable is a storage location that can hold data which can be changed during
program execution.
python
Copy
print("Hello, World!")
Unit 2: Web Development Basics
Question: What is the purpose of CSS in web development?
Answer:
CSS (Cascading Style Sheets) is used to style and format the layout of web pages,
including colors, fonts, and spacing.
html
Copy
<a href="https://example.com">Visit Example</a>
Run HTML
Unit 3: Database Management
Question: What is a primary key in a database?
Answer:
A primary key is a unique identifier for each record in a database table. It
ensures that no two rows have the same value.
Question: Write an SQL query to retrieve all records from a table named "Students".
Answer:
sql
Copy
SELECT * FROM Students;
Unit 4: Software Development Lifecycle (SDLC)
Question: What is the difference between Agile and Waterfall methodologies?
Answer:
Waterfall is a linear approach where each phase must be completed before the next
begins.
java
Copy
class Animal {
void sound() {
System.out.println("Animal makes a sound");
}
}
Unit 6: Version Control Systems
Question: What is the purpose of Git?
Answer:
Git is a version control system used to track changes in code, collaborate with
others, and manage different versions of a project.
bash
Copy
git commit -m "Your commit message"
Unit 7: Networking Basics
Question: What is an IP address?
Answer:
An IP address is a unique identifier assigned to each device on a network, allowing
them to communicate with each other.
Copy
1. Start
2. Initialize max = first element of the list
3. For each number in the list:
a. If number > max, set max = number
4. Print max
5. End
Unit 9: Testing and Debugging
Question: What is unit testing?
Answer:
Unit testing involves testing individual components or units of code to ensure they
work as expected.
Case Studies: Analyze real-world software projects to understand SDLC, testing, and
security practices.
Practical Exercises: Write code snippets, debug errors, and optimize algorithms.
By mastering these skills and concepts, you will be well-prepared for a career in
software development. Practice regularly, work on projects, and seek clarification
on any challenging topics!