Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

SRI KRISHNA COLLEGE OF TECHNOLOGY

22SB402 | 22SBO03 TESTING METHODOLOGIES AND TOOLS


II YEAR – IV SEMESTER COMMON FOR B. TECH IT & IOT
CLASS ASSIGNMENT I QUESTION PAPER

1. In a bustling office environment, a company establishes its employee database to efficiently


manage personnel information. The Employee’s table is created to centralize data on staff,
capturing crucial details such as ID, Name, and Age. As the workforce grows, the system handles
seamless data entry, populating the table with employee profiles. HR swiftly accesses and updates
employee records, ensuring accuracy and compliance. The structured database enables quick
retrieval and analysis of workforce demographics. This robust system optimizes HR operations,
fostering a well-organized and productive workplace.

Task:
• Create a table named Employees to store employee information, including ID, Name, and Age.

Input Table:
ID Name Age
1 John Doe 30
2 Jane Smith 25
3 Michael Johnson 35
4 Emily Davis 28

2. As a data analyst preparing for an educational seminar on the global impact of Nobel laureates,
you are tasked with creating informative content about key Nobel Prize winners. A particular
focus of the seminar is the Nobel Prize in Literature for 1971, where the aim is to highlight not
only the winner but also their country of origin, illustrating the cultural diversity of Nobel
laureates. This specific data will contribute to a broader discussion on how different cultures
have influenced these laureates and their work.
Task:
• Extract and present the winner of the Nobel Prize in Literature for the year 1971 along with
their country, utilizing the nobel_win database table.
• This information will be pivotal for the seminar's section on cultural influences.

Input Table:
YEAR SUBJECT WINNER COUNTRY CATEGORY
1970 Physics Hannes Alfven Sweden Scientist
1970 Physics Louis Neel France Scientist
1971 Literature Pablo Nerudo Chile Linguist

Output Table:
WINNER COUNTRY
Pablo Neruda Chile
SRI KRISHNA COLLEGE OF TECHNOLOGY
22SB402 | 22SBO03 TESTING METHODOLOGIES AND TOOLS
II YEAR – IV SEMESTER COMMON FOR B. TECH IT & IOT
CLASS ASSIGNMENT I QUESTION PAPER

3. As part of maintaining accurate and current records in your company's customer database, it's
essential to update contact information promptly. Recently, a customer named "John Doe" informed
the customer service team that he has relocated to a new residence. To ensure that all future
communications and deliveries are directed correctly, his address in the database needs to be
updated to reflect this change.
Task:
• Adjust the address details for John Doe in the customer_information table to his new
address at "456 Oak Street."

Input Table:
customer_id name email phone_number Address
1 John Doe john.doe@example.com 1234567890 123 Elm
Street
2 Jane Smith jane.smith@example.com 0987654321 789 Pine
Street

Output Table:
customer_id name email phone_number Address
1 John Doe john.doe@example.com 1234567890 456 Oak
Street

4. In a retail e-commerce platform, orders are managed through a database. Each order has a unique
ID, customer ID, order date, and status. For instance, a customer places an order for various items,
such as electronics or clothing, with different statuses like "Pending," "Shipped," or "Delivered." To
maintain operational efficiency, the company needs to track the total number of orders for each
status. This helps in monitoring the progress of orders, ensuring timely delivery, and addressing any
issues promptly.
Task:
• Your task should use the COUNT function to calculate the number of orders for each status.

Input Table:
order_id customer_id order_date order_status
1 101 2023-01-15 Delivered
2 102 2023-01-16 Shipped
3 103 2023-01-17 Pending
4 104 2023-01-18 Shipped
5 105 2023-01-19 Delivered
6 106 2023-01-20 Pending
7 107 2023-01-21 Delivered

Output Table:
order_status total_orders
Delievered 3
Pending 2
Shipped 2
SRI KRISHNA COLLEGE OF TECHNOLOGY
22SB402 | 22SBO03 TESTING METHODOLOGIES AND TOOLS
II YEAR – IV SEMESTER COMMON FOR B. TECH IT & IOT
CLASS ASSIGNMENT I QUESTION PAPER

5. In a fast-paced tech startup environment, several teams collaborate on various projects concurrently
to meet deadlines and deliver high-quality products. Each team is responsible for executing tasks
related to their respective projects. The management understands the importance of evaluating team
productivity to ensure efficient project management and resource allocation. Therefore, they aim to
analyze the average number of tasks completed by each team to gain insights into their productivity
levels.
Task:
• calculate the average number of tasks completed per team in a tech startup environment.

Input Table:
TeamID TeamName TeamLeadID
1 Development 101
2 Marketing 102
3 Design 103

Task Table:
TaskID TeamID TaskDescription Status
1 1 Develop feature Done
2 1 Bug fixing Done
3 2 Marketing Plan In-Progress
4 3 UI Design Done
5 3 Prototype design Done

Output Table:
TeamName AvgTasksCompleted
Development 1.0000
Marketing 0.0000
Design 1.0000

You might also like