0% found this document useful (0 votes)
18 views2 pages

Array-Based Lists for Daily Activities

The document outlines four quizzes that involve creating simple applications using arrays in programming. Each quiz specifies a project name, namespace, class name, and an array with specific values related to grocery items, school subjects, countries to visit, and favorite movies. The expected result for each quiz includes listing the items using a for loop.

Uploaded by

Ebenezer Kwakye
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views2 pages

Array-Based Lists for Daily Activities

The document outlines four quizzes that involve creating simple applications using arrays in programming. Each quiz specifies a project name, namespace, class name, and an array with specific values related to grocery items, school subjects, countries to visit, and favorite movies. The expected result for each quiz includes listing the items using a for loop.

Uploaded by

Ebenezer Kwakye
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Quiz 1 – Grocery Items Listing

Scenario:
You went to a local grocery store and bought five items. Use an array to store
and list them.

Instructions:

 Project Name: GroceryListApp

 Namespace: GroceryApp

 Class Name: Program

 Array Name: groceryItems

 Array Values: "Rice", "Milk", "Eggs", "Bread", "Butter"

Expected result:

Items you bought from the grocery store:

Then list each item using a for loop.

Quiz 2 – Subjects in a School Term

Scenario:
You're taking 6 subjects this semester. Use an array to store and print them.

💡 Instructions:

 Project Name: SchoolSubjectsApp

 Namespace: SchoolApp

 Class Name: Program

 Array Name: subjects

 Array Values: "Math", "English", "Science", "History", "ICT", "French"

Expected result:

Subjects for this semester:

Then use a for loop to list them line by line.


Quiz 3 – Countries to Visit

Scenario:
You plan to visit 4 countries for vacation. Create an array to display them.

Instructions:

 Project Name: TravelPlannerApp

 Namespace: TravelApp

 Class Name: Program

 Array Name: countriesToVisit

 Array Values: "Ghana", "Japan", "Canada", "Italy"

Expected result:

Countries on your travel wish list:

Then show each one using a for loop.

Quiz 4 – Favorite Movies

Scenario:
List your 5 favorite movies using an array.

Instructions:

 Project Name: MovieListApp

 Namespace: EntertainmentApp

 Class Name: Program

 Array Name: favoriteMovies

 Array Values: "Inception", "Black Panther", "Interstellar", "The


Matrix", "Hidden Figures"

Expected results:

Your top 5 favorite movies are:

Then show a list of the movie titles using a for loop.

You might also like