
P3: Histogram
Authored by Lydia Li
Life Skills
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
findMaxIndex() should be called in...
main
get counts of each data method
print histogram method
print stats method
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The histogram for each dataset should begin at 1 and end at the largest value in the dataset
True
False
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What should be the size of the array that stores file data?
1000, since the spec guarantees that all files will have < 1000 lines of data
Students should first read through the file to count the number of data values
Students shouldn't use an array to store file data:(
The first value in the file is the total number of values contained in the file.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the following concept graded:
Not using a while loop in main
E
S
N
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the following concept graded:
Using while loops instead of for loops in methods other than main
E
S
N
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
This implementation of findMaxIndex() is incorrect.
True
False
7.
OPEN ENDED QUESTION
3 mins • 1 pt
What has been your favorite and/or least favorite assignment to grade?
Evaluate responses using AI:
OFF
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?