1) Which of the following is an efficient way of holding more than one item of data of the same data type in a program? a) A variable b) A constant c) An array d) A subroutine 2) Erin wishes to store her last four 100 metre sprint times in an array. What data type should the array sotre? a) String b) Boolean c) Float d) Integer 3) What is an input ( select al correct answers.) a) gives an output b) gives back the statement given c) opposite to output d) accepts data from the user 4) What will be the result of running the code in the picture? a) 1 b) 3 c) 6 d) 8 5) Which of the following special characters are used when creating an array? a) : : b) { } c) [ ] d) ( ) 6) What is the length of the array [2, -5, 8, -15, 10] a) 5 b) 4 c) 13 d) 9 7) What is an Array a) a data structure that allows you to hold a value, all the same type, with one name b) a data structure that allows you to hold several values, all have different types, with one name c) a data structure that allows you to hold several values, all the same type, with one name d) a data structure that allows you to hold several values, all the same type, with multiple names 8) What would the following array calls would return "x" from the following array: letters = [["y", "w"], ["x", "z"], ["a", "b"]] a) letters[1][0] b) letters[2][1] c) lettersy[2][0] d) letters[1][1]

લીડરબોર્ડ

દૃશ્યમાન શૈલી

વિકલ્પો

ટેમ્પલેટ બદલો

આપોઆપ સંગ્રહ થયેલ છે: ?