Advertisement
realanton12345

TestTwo

Jun 5th, 2018
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.95 KB | None | 0 0
  1. {
  2.   "testName": "Тест по Java",
  3.   "testAuthor": "Bondarovich",
  4.   "testQuestions": 10,
  5.   "testMaxPoints": 75,
  6.   "questions": [
  7.     {
  8.       "questionID": 1,
  9.       "questionAnswers": [
  10.         {
  11.           "aCase": "100",
  12.           "cCase": "1000",
  13.           "bCase": "64",
  14.           "dCase": "32"
  15.         }
  16.       ],
  17.       "correctAnswer": "A",
  18.       "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tbyte b = 50;\n\tb = b * 2;\n\tSystem.out.println(b);\n}"
  19.     },
  20.     {
  21.       "questionID": 2,
  22.       "questionAnswers": [
  23.         {
  24.           "aCase": "15",
  25.           "cCase": "20",
  26.           "bCase": "1.5",
  27.           "dCase": "2.0"
  28.         }
  29.       ],
  30.       "correctAnswer": "C",
  31.       "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\t{\n\t\tint i = 20;\n\t\tSystem.out.print(i);\n\t}\n}"
  32.     },
  33.     {
  34.       "questionID": 3,
  35.       "questionAnswers": [
  36.         {
  37.           "aCase": "04",
  38.           "cCase": "03",
  39.           "bCase": "02",
  40.           "dCase": "05"
  41.         }
  42.       ],
  43.       "correctAnswer": "C",
  44.       "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tfor (int i = 0; i < 5; i += 2) {\n\t\tSystem.out.print(i++);\n\t}\n}"
  45.     },
  46.     {
  47.       "questionID": 4,
  48.       "questionAnswers": [
  49.         {
  50.           "aCase": "34",
  51.           "cCase": "32",
  52.           "bCase": "31",
  53.           "dCase": "43"
  54.         }
  55.       ],
  56.       "correctAnswer": "A",
  57.       "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) \n{\n\tint i= 2;\n\tdo {\n\t\tSystem.out.print(++i);\n\t} while (i == 3);\n}"
  58.     },
  59.     {
  60.       "questionID": 5,
  61.       "questionAnswers": [
  62.         {
  63.           "aCase": "11",
  64.           "cCase": "0",
  65.           "bCase": "-1",
  66.           "dCase": "Бесконечность"
  67.         }
  68.       ],
  69.       "correctAnswer": "D",
  70.       "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tSystem.out.println(11. / 0);\n}"
  71.     },
  72.     {
  73.       "questionID": 6,
  74.       "questionAnswers": [
  75.         {
  76.           "aCase": "Ошибка",
  77.           "cCase": "Бесконечность",
  78.           "bCase": "0",
  79.           "dCase": "-1"
  80.         }
  81.       ],
  82.       "correctAnswer": "A",
  83.       "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tSystem.out.println(0 / 0);\n}"
  84.     },
  85.     {
  86.       "questionID": 7,
  87.       "questionAnswers": [
  88.         {
  89.           "aCase": "12.3",
  90.           "cCase": "12.300",
  91.           "bCase": "13.2",
  92.           "dCase": "15.5"
  93.         }
  94.       ],
  95.       "correctAnswer": "A",
  96.       "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tfloat d = 12.3;\n\tSystem.out.println(d);\n}"
  97.     },
  98.     {
  99.       "questionID": 8,
  100.       "questionAnswers": [
  101.         {
  102.           "aCase": "Использовать ключевое слово public",
  103.           "cCase": "Использовать ключевое слово private",
  104.           "bCase": "Использовать ключевое слово static",
  105.           "dCase": "Использовать ключевое слово final"
  106.         }
  107.       ],
  108.       "correctAnswer": "B",
  109.       "questionString": "Как сделать переменную статической"
  110.     },
  111.     {
  112.       "questionID": 9,
  113.       "questionAnswers": [
  114.         {
  115.           "aCase": "print(\"Java\")",
  116.           "cCase": "System.out.println(\"Java\")",
  117.           "bCase": "System.out.println(\"java\")",
  118.           "dCase": "System.out.print(\"Java\")"
  119.         }
  120.       ],
  121.       "correctAnswer": "C",
  122.       "questionString": "Выберите функцию печати сообщения: \"Java\" с новой строки"
  123.     },
  124.     {
  125.       "questionID": 10,
  126.       "questionAnswers": [
  127.         {
  128.           "aCase": "Да",
  129.           "cCase": "Нет",
  130.           "bCase": "Только после некоторых",
  131.           "dCase": "Только после заголовков функций"
  132.         }
  133.       ],
  134.       "correctAnswer": "A",
  135.       "questionString": "Обязательно ли ставить точку с запятой в конце выражений"
  136.     }
  137.   ]
  138. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement