[["Question: Consider the code segment below.\n Line 1: IF (a = 0)\n Line 2: {\n Line 3: b \u2190 a + 10\n Line 4: }\n Line 5: ELSE\n Line 6: {\n Line 7: b \u2190 a + 2O\n Line 8: }\n Which of the following changes will NOT affect the results when the code segment is executed?\nChoices:\nA. Changing line 3 to b \u2190 10\nB. Changing line 3 to a \u2190 b + 10\nC. Changing line 7 to b \u2190 20\nD. Changing line 7 to a \u2190 b + 10\nAnswer:", " Changing line 3 to b \u2190 10"], ["Question: Consider the code segment below.\n Line 1: IF (a = 0)\n Line 2: {\n Line 3: b \u2190 a + 10\n Line 4: }\n Line 5: ELSE\n Line 6: {\n Line 7: b \u2190 a + 2O\n Line 8: }\n Which of the following changes will NOT affect the results when the code segment is executed?\nChoices:\nA. Changing line 3 to b \u2190 10\nB. Changing line 3 to a \u2190 b + 10\nC. Changing line 7 to b \u2190 20\nD. Changing line 7 to a \u2190 b + 10\nAnswer:", " Changing line 3 to a \u2190 b + 10"], ["Question: Consider the code segment below.\n Line 1: IF (a = 0)\n Line 2: {\n Line 3: b \u2190 a + 10\n Line 4: }\n Line 5: ELSE\n Line 6: {\n Line 7: b \u2190 a + 2O\n Line 8: }\n Which of the following changes will NOT affect the results when the code segment is executed?\nChoices:\nA. Changing line 3 to b \u2190 10\nB. Changing line 3 to a \u2190 b + 10\nC. Changing line 7 to b \u2190 20\nD. Changing line 7 to a \u2190 b + 10\nAnswer:", " Changing line 7 to b \u2190 20"], ["Question: Consider the code segment below.\n Line 1: IF (a = 0)\n Line 2: {\n Line 3: b \u2190 a + 10\n Line 4: }\n Line 5: ELSE\n Line 6: {\n Line 7: b \u2190 a + 2O\n Line 8: }\n Which of the following changes will NOT affect the results when the code segment is executed?\nChoices:\nA. Changing line 3 to b \u2190 10\nB. Changing line 3 to a \u2190 b + 10\nC. Changing line 7 to b \u2190 20\nD. Changing line 7 to a \u2190 b + 10\nAnswer:", " Changing line 7 to a \u2190 b + 10"], ["Question: In Python 3, what is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?\nChoices:\nA. [ 'abcd', 786 , 2.23, 'john', 70.2 ]\nB. abcd\nC. [786, 2.23]\nD. None of the above.\nAnswer:", " [ 'abcd', 786 , 2.23, 'john', 70.2 ]"], ["Question: In Python 3, what is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?\nChoices:\nA. [ 'abcd', 786 , 2.23, 'john', 70.2 ]\nB. abcd\nC. [786, 2.23]\nD. None of the above.\nAnswer:", " abcd"], ["Question: In Python 3, what is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?\nChoices:\nA. [ 'abcd', 786 , 2.23, 'john', 70.2 ]\nB. abcd\nC. [786, 2.23]\nD. None of the above.\nAnswer:", " [786, 2.23]"], ["Question: In Python 3, what is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?\nChoices:\nA. [ 'abcd', 786 , 2.23, 'john', 70.2 ]\nB. abcd\nC. [786, 2.23]\nD. None of the above.\nAnswer:", " None of the above."], ["Question: Refer to the nextIntInRangemethod below:\n /** @return a random integer in the range low to high, inclusive */\n public int nextIntInRange(int low, int high)\n {\n return /* expression */\n }\n Which /* expression */ will always return a value that satisfies the postcondition?\nChoices:\nA. (int) (Math.random() * high) + low;\nB. (int) (Math.random() * (high - low)) + low;\nC. (int) (Math.random() * (high - low + 1)) + low;\nD. (int) (Math.random() * (high + low)) + low;\nAnswer:", " (int) (Math.random() * high) + low;"], ["Question: Refer to the nextIntInRangemethod below:\n /** @return a random integer in the range low to high, inclusive */\n public int nextIntInRange(int low, int high)\n {\n return /* expression */\n }\n Which /* expression */ will always return a value that satisfies the postcondition?\nChoices:\nA. (int) (Math.random() * high) + low;\nB. (int) (Math.random() * (high - low)) + low;\nC. (int) (Math.random() * (high - low + 1)) + low;\nD. (int) (Math.random() * (high + low)) + low;\nAnswer:", " (int) (Math.random() * (high - low)) + low;"], ["Question: Refer to the nextIntInRangemethod below:\n /** @return a random integer in the range low to high, inclusive */\n public int nextIntInRange(int low, int high)\n {\n return /* expression */\n }\n Which /* expression */ will always return a value that satisfies the postcondition?\nChoices:\nA. (int) (Math.random() * high) + low;\nB. (int) (Math.random() * (high - low)) + low;\nC. (int) (Math.random() * (high - low + 1)) + low;\nD. (int) (Math.random() * (high + low)) + low;\nAnswer:", " (int) (Math.random() * (high - low + 1)) + low;"], ["Question: Refer to the nextIntInRangemethod below:\n /** @return a random integer in the range low to high, inclusive */\n public int nextIntInRange(int low, int high)\n {\n return /* expression */\n }\n Which /* expression */ will always return a value that satisfies the postcondition?\nChoices:\nA. (int) (Math.random() * high) + low;\nB. (int) (Math.random() * (high - low)) + low;\nC. (int) (Math.random() * (high - low + 1)) + low;\nD. (int) (Math.random() * (high + low)) + low;\nAnswer:", " (int) (Math.random() * (high + low)) + low;"], ["Question: In Python 3, what is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?\nChoices:\nA. ( 'abcd', 786 , 2.23, 'john', 70.2 )\nB. abcd\nC. Error\nD. None of the above.\nAnswer:", " ( 'abcd', 786 , 2.23, 'john', 70.2 )"], ["Question: In Python 3, what is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?\nChoices:\nA. ( 'abcd', 786 , 2.23, 'john', 70.2 )\nB. abcd\nC. Error\nD. None of the above.\nAnswer:", " abcd"], ["Question: In Python 3, what is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?\nChoices:\nA. ( 'abcd', 786 , 2.23, 'john', 70.2 )\nB. abcd\nC. Error\nD. None of the above.\nAnswer:", " Error"], ["Question: In Python 3, what is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?\nChoices:\nA. ( 'abcd', 786 , 2.23, 'john', 70.2 )\nB. abcd\nC. Error\nD. None of the above.\nAnswer:", " None of the above."], ["Question: What is the output of \"abc\"[-1] in Python 3?\nChoices:\nA. Error\nB. a\nC. b\nD. c\nAnswer:", " Error"], ["Question: What is the output of \"abc\"[-1] in Python 3?\nChoices:\nA. Error\nB. a\nC. b\nD. c\nAnswer:", " a"], ["Question: What is the output of \"abc\"[-1] in Python 3?\nChoices:\nA. Error\nB. a\nC. b\nD. c\nAnswer:", " b"], ["Question: What is the output of \"abc\"[-1] in Python 3?\nChoices:\nA. Error\nB. a\nC. b\nD. c\nAnswer:", " c"], ["Question: A student is recording a song on her computer. When the recording is finished, she saves a copy on her computer. The student notices that the saved copy is of lower sound quality than the original recording. Which of the following could be a possible explanation for the difference in sound quality?\nChoices:\nA. The song was saved using fewer bits per second than the original song.\nB. The song was saved using more bits per second than the original song.\nC. The song was saved using a lossless compression technique.\nD. Some information is lost every time a file is saved from one location on a computer to another location.\nAnswer:", " The song was saved using fewer bits per second than the original song."], ["Question: A student is recording a song on her computer. When the recording is finished, she saves a copy on her computer. The student notices that the saved copy is of lower sound quality than the original recording. Which of the following could be a possible explanation for the difference in sound quality?\nChoices:\nA. The song was saved using fewer bits per second than the original song.\nB. The song was saved using more bits per second than the original song.\nC. The song was saved using a lossless compression technique.\nD. Some information is lost every time a file is saved from one location on a computer to another location.\nAnswer:", " The song was saved using more bits per second than the original song."], ["Question: A student is recording a song on her computer. When the recording is finished, she saves a copy on her computer. The student notices that the saved copy is of lower sound quality than the original recording. Which of the following could be a possible explanation for the difference in sound quality?\nChoices:\nA. The song was saved using fewer bits per second than the original song.\nB. The song was saved using more bits per second than the original song.\nC. The song was saved using a lossless compression technique.\nD. Some information is lost every time a file is saved from one location on a computer to another location.\nAnswer:", " The song was saved using a lossless compression technique."], ["Question: A student is recording a song on her computer. When the recording is finished, she saves a copy on her computer. The student notices that the saved copy is of lower sound quality than the original recording. Which of the following could be a possible explanation for the difference in sound quality?\nChoices:\nA. The song was saved using fewer bits per second than the original song.\nB. The song was saved using more bits per second than the original song.\nC. The song was saved using a lossless compression technique.\nD. Some information is lost every time a file is saved from one location on a computer to another location.\nAnswer:", " Some information is lost every time a file is saved from one location on a computer to another location."], ["Question: In Python 3, which of the following function convert a string to an int in python?\nChoices:\nA. int(x [,base])\nB. long(x [,base] )\nC. float(x)\nD. str(x)\nAnswer:", " int(x [,base])"], ["Question: In Python 3, which of the following function convert a string to an int in python?\nChoices:\nA. int(x [,base])\nB. long(x [,base] )\nC. float(x)\nD. str(x)\nAnswer:", " long(x [,base] )"], ["Question: In Python 3, which of the following function convert a string to an int in python?\nChoices:\nA. int(x [,base])\nB. long(x [,base] )\nC. float(x)\nD. str(x)\nAnswer:", " float(x)"], ["Question: In Python 3, which of the following function convert a string to an int in python?\nChoices:\nA. int(x [,base])\nB. long(x [,base] )\nC. float(x)\nD. str(x)\nAnswer:", " str(x)"], ["Question: In the program below, y is a positive integer (e.g. l, 2, 3, ...).\n result \u2190 0\n REPEAT 3 TIMES {\n REPEAT y TIMES {\n result \u2190 result + 1\n }\n }\nChoices:\nA. y+3\nB. 3y\nC. y^3\nD. 3^y\nAnswer:", " y+3"], ["Question: In the program below, y is a positive integer (e.g. l, 2, 3, ...).\n result \u2190 0\n REPEAT 3 TIMES {\n REPEAT y TIMES {\n result \u2190 result + 1\n }\n }\nChoices:\nA. y+3\nB. 3y\nC. y^3\nD. 3^y\nAnswer:", " 3y"], ["Question: In the program below, y is a positive integer (e.g. l, 2, 3, ...).\n result \u2190 0\n REPEAT 3 TIMES {\n REPEAT y TIMES {\n result \u2190 result + 1\n }\n }\nChoices:\nA. y+3\nB. 3y\nC. y^3\nD. 3^y\nAnswer:", " y^3"], ["Question: In the program below, y is a positive integer (e.g. l, 2, 3, ...).\n result \u2190 0\n REPEAT 3 TIMES {\n REPEAT y TIMES {\n result \u2190 result + 1\n }\n }\nChoices:\nA. y+3\nB. 3y\nC. y^3\nD. 3^y\nAnswer:", " 3^y"], ["Question: In Python 3, which of the following function checks in a string that all characters are in uppercase?\nChoices:\nA. isupper()\nB. join(seq)\nC. len(string)\nD. ljust(width[, fillchar])\nAnswer:", " isupper()"], ["Question: In Python 3, which of the following function checks in a string that all characters are in uppercase?\nChoices:\nA. isupper()\nB. join(seq)\nC. len(string)\nD. ljust(width[, fillchar])\nAnswer:", " join(seq)"], ["Question: In Python 3, which of the following function checks in a string that all characters are in uppercase?\nChoices:\nA. isupper()\nB. join(seq)\nC. len(string)\nD. ljust(width[, fillchar])\nAnswer:", " len(string)"], ["Question: In Python 3, which of the following function checks in a string that all characters are in uppercase?\nChoices:\nA. isupper()\nB. join(seq)\nC. len(string)\nD. ljust(width[, fillchar])\nAnswer:", " ljust(width[, fillchar])"], ["Question: A sorted list of numbers contains 500 elements. Which of the following is closest to the maximum number of list elements that will be examined when performing a binary search for a value in the list?\nChoices:\nA. 10\nB. 50\nC. 250\nD. 500\nAnswer:", " 10"], ["Question: A sorted list of numbers contains 500 elements. Which of the following is closest to the maximum number of list elements that will be examined when performing a binary search for a value in the list?\nChoices:\nA. 10\nB. 50\nC. 250\nD. 500\nAnswer:", " 50"], ["Question: A sorted list of numbers contains 500 elements. Which of the following is closest to the maximum number of list elements that will be examined when performing a binary search for a value in the list?\nChoices:\nA. 10\nB. 50\nC. 250\nD. 500\nAnswer:", " 250"], ["Question: A sorted list of numbers contains 500 elements. Which of the following is closest to the maximum number of list elements that will be examined when performing a binary search for a value in the list?\nChoices:\nA. 10\nB. 50\nC. 250\nD. 500\nAnswer:", " 500"]]