2.8 KiB
2.8 KiB
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
- Write a Python program to find the factorial of a given number.
- Create a function that checks whether a given number is prime or not.
- Implement a program that reverses a string without using built-in reverse functions.
Assignment 2: Web Development
- Build a simple HTML webpage that includes a form to collect user information.
- Create a CSS stylesheet to style the webpage from the previous task.
- Enhance the webpage by adding JavaScript validation to the form inputs.
Assignment 3: Data Structures
- Implement a stack data structure with push, pop, and peek operations.
- Create a class for a binary search tree and implement an insertion function.
- Solve the classic problem of finding the nth Fibonacci number using recursion and iteration.
Assignment 4: Database Management
- Design a relational database schema for a blog application with users, posts, and comments.
- Write SQL queries to retrieve all posts by a specific user and the associated comments.
- Normalize the schema to eliminate data redundancy and improve efficiency.
Assignment 5: Algorithms and Problem Solving
- Implement a sorting algorithm of your choice (e.g., bubble sort, merge sort) in a programming language of your choice.
- 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].