Diagnostic Misconceptions - Array Index
Computer Science: OCR GCSE, topic 2.2.23
Test yourself on Diagnostic Misconceptions - Array Index
Given the following array, what would be output by the command ‘print scores[3]’?
scores = [“Five”,”Six”,”Seven”]
Given the following array, what would be output by the command ‘print scores[0]’?
scores = [“Five”,”Six”,”Seven”]
Given the following array, what would be output by the command ‘print scores[1]’?
scores = [“Five”,”Six”,”Seven”]
Given the following array, what would be output by the command ‘print scores[2]’?
scores = [“Five”,”Six”,”Seven”]
scores[2] = “One” Given the following array, what would be output by the command ‘print scores[3]’?
scores = [“Five”,”Six”,”Seven”]
scores[2] = “One”
scores.append(“Eight”)