2/26/23, 3:53 PM Assessment 1: Attempt review
MENU
Dashboard / My courses / COS1511-23-Y / Welcome to COS1511 Module Site / Assessment 1
Started on Sunday, 26 February 2023, 3:47 PM
State Finished
Completed on Sunday, 26 February 2023, 3:52 PM
Time taken 5 mins 21 secs
Marks 18.00/18.00
Grade 100.00 out of 100.00
Question 1
Correct
Mark 2.00 out of 2.00
Which of the following is a valid variable name?
1. sixty_four Correct option: 1
• Options 2 and 3 are incorrect because a variable
name cannot start with a numerical
value.
• Option 4 is incorrect because a variable name
may not contain an ampersand character.
2. 64set
3. 6_set
4. dollar$
Your answer is correct.
The correct answer is:
sixty_four
https://mymodules.dtls.unisa.ac.za/mod/quiz/review.php?attempt=6856450&cmid=670949 1/9
, 2/26/23, 3:53 PM Assessment 1: Attempt review
Question 2
Correct
Mark 2.00 out of 2.00
MENU
Which of the following is not a valid variable name?
Dashboard / My courses / COS1511-23-Y / Welcome to COS1511 Module Site / Assessment 1
1. myInt
2. myDouble
3. sumOf4
4. return Correct option: 4
• Options 4 is correct as return is a reserved word
in C++ and cannot be used as a variable
name.
• Options 1, 2 and 3 are all valid variable names.
Your answer is correct.
The correct answer is:
return
https://mymodules.dtls.unisa.ac.za/mod/quiz/review.php?attempt=6856450&cmid=670949 2/9
MENU
Dashboard / My courses / COS1511-23-Y / Welcome to COS1511 Module Site / Assessment 1
Started on Sunday, 26 February 2023, 3:47 PM
State Finished
Completed on Sunday, 26 February 2023, 3:52 PM
Time taken 5 mins 21 secs
Marks 18.00/18.00
Grade 100.00 out of 100.00
Question 1
Correct
Mark 2.00 out of 2.00
Which of the following is a valid variable name?
1. sixty_four Correct option: 1
• Options 2 and 3 are incorrect because a variable
name cannot start with a numerical
value.
• Option 4 is incorrect because a variable name
may not contain an ampersand character.
2. 64set
3. 6_set
4. dollar$
Your answer is correct.
The correct answer is:
sixty_four
https://mymodules.dtls.unisa.ac.za/mod/quiz/review.php?attempt=6856450&cmid=670949 1/9
, 2/26/23, 3:53 PM Assessment 1: Attempt review
Question 2
Correct
Mark 2.00 out of 2.00
MENU
Which of the following is not a valid variable name?
Dashboard / My courses / COS1511-23-Y / Welcome to COS1511 Module Site / Assessment 1
1. myInt
2. myDouble
3. sumOf4
4. return Correct option: 4
• Options 4 is correct as return is a reserved word
in C++ and cannot be used as a variable
name.
• Options 1, 2 and 3 are all valid variable names.
Your answer is correct.
The correct answer is:
return
https://mymodules.dtls.unisa.ac.za/mod/quiz/review.php?attempt=6856450&cmid=670949 2/9