Tags:
tag this topic
create new tag
view all tags
---+Hint 2: Quiz with arrays: Repeating wrong answers 1. Create a boolean array (the size of the number of questions) and initialize all to false. 1. When a question is answered correctly, set that element in the boolean array to true. 1. To find a question that has not been answered correctly: a. generate a random integer in the range of questions a. while that question has been answered correctly i. generate another random integer in the same range a. return the random number that allowed the loop to exit
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2024-06-14
-
CathyBareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback