Merge remote changes into main
This commit is contained in:
1 parent
4683772eb8
commit
a1082245d8
1 file changed
+53
@@ -0,0 +1,53 @@
|
||||
# Programming Activities: Quiz Questions and Assignments
|
||||
|
||||
## Quiz Questions
|
||||
|
||||
| Question Number | Question | Answer |
|
||||
|-----------------|-------------------------------------------------------|--------|
|
||||
| 1 | What is the difference between compile-time and runtime errors in programming? | |
|
||||
| 2 | Explain the concept of a variable scope. | |
|
||||
| 3 | What is the purpose of version control systems? | |
|
||||
| 4 | Describe the difference between `==` and `===` in JavaScript. | |
|
||||
| 5 | What is time complexity, and why is it important? | |
|
||||
| 6 | How does inheritance work in object-oriented programming? | |
|
||||
| 7 | What are the benefits of using a MVC architecture? | |
|
||||
| 8 | Explain the concept of polymorphism. | |
|
||||
| 9 | What is a Docker container and why is it useful? | |
|
||||
| 10 | When would you use a linked list instead of an array? | |
|
||||
|
||||
## Assignments
|
||||
|
||||
### Assignment 1: Basic Python Concepts
|
||||
|
||||
1. Write a Python program to find the factorial of a given number.
|
||||
2. Create a function that checks whether a given number is prime or not.
|
||||
3. Implement a program that reverses a string without using built-in reverse functions.
|
||||
|
||||
### Assignment 2: Web Development
|
||||
|
||||
1. Build a simple HTML webpage that includes a form to collect user information.
|
||||
2. Create a CSS stylesheet to style the webpage from the previous task.
|
||||
3. Enhance the webpage by adding JavaScript validation to the form inputs.
|
||||
|
||||
### Assignment 3: Data Structures
|
||||
|
||||
1. Implement a stack data structure with push, pop, and peek operations.
|
||||
2. Create a class for a binary search tree and implement an insertion function.
|
||||
3. Solve the classic problem of finding the nth Fibonacci number using recursion and iteration.
|
||||
|
||||
### Assignment 4: Database Management
|
||||
|
||||
1. Design a relational database schema for a blog application with users, posts, and comments.
|
||||
2. Write SQL queries to retrieve all posts by a specific user and the associated comments.
|
||||
3. Normalize the schema to eliminate data redundancy and improve efficiency.
|
||||
|
||||
### Assignment 5: Algorithms and Problem Solving
|
||||
|
||||
1. Implement a sorting algorithm of your choice (e.g., bubble sort, merge sort) in a programming language of your choice.
|
||||
2. Solve the "Two Sum" problem: Given an array of integers, return indices of the two numbers that add up to a specific target.
|
||||
|
||||
## Submission Guidelines
|
||||
|
||||
- For the quiz questions, provide your answers in the "Answer" column of the table.
|
||||
- For assignments, create separate folders for each assignment and include your code files.
|
||||
- Submit your completed assignments by [11/10/2023].
|
||||
Reference in new issue
Block a user