COS1511-23-Y Welcome to COS1511 Module Site Assessment 3
QUIZ
Started on Wednesday, 6 September 2023, 11:52 AM
State Finished
Completed on Wednesday, 6 September 2023, 12:25 PM
Time taken 33 mins 30 secs
Marks 58.00/60.00
Grade 96.67 out of 100.00
Question 1 Which of the following statements declares a one-dimensional
Correct array called letters to contain the first five lowercase letters of
Mark 1.00 out of the alphabet.
1.00
Question 2 Given the array declaration below and user prompt, which
Correct statement will place the number 1 into the first array element
Mark 1.00 out of using the extraction operator.
1.00
int numbers[5] = {0};
cout << “Enter the first number: “;
Question 3 You would use _____ to reference the variable located in the first
Correct row, first column of the scores two-dimensional array.
Mark 1.00 out of
1.00
a. scores[0][0]
b. scores[1][1]
c. scores[first][first]
d. scores[1,1]
Your answer is correct.
The correct answer is:
scores[0][0]
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller hiltontutorials. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.53. You're not tied to anything after your purchase.