-
Notifications
You must be signed in to change notification settings - Fork 1
Create Performance Task Arushi and Prisha
Computer Science Quiz
Program Purpose: Create a multiple-choice quiz to test a student's computer science knowledge.
Input: Checkboxes (only one checkbox can be checked per question). Submit button at the end of the quiz.
Output: Display the text "correct" or "incorrect" based on which checkbox the user selected. Create a variable called "score" that temporarily stores the student's total score for that round.
Lists: Stores different questions and answers when querying from database. The rows in the database will be represented as lists in the program.
Procedure: Randomize the question order. Return "correct" or "incorrect" based on checkbox selected.
Parameters: The checkboxes that the user selected.
Sequencing: The steps of the algorithm are retrieve and display questions from database in a randomized order, user input (checkbox), procedure that gets answers from database, and return quiz score.
Selection: Return different outputs based on the checkboxes checked.
Iteration: Regenerate the test, so people can take it again.
Database: Store questions and answers as tables. The primary key is question number and answer number. Create a test table that generates a quiz, but does not randomize.