Advertisement
realanton12345

TestFour

Jun 5th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.68 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": "-2,147,483,648....2,147,483,647",
  12.           "cCase": "-32,768....32, 767",
  13.           "bCase": "-128...127",
  14.           "dCase": "-9,223,372,036,854,775,808...9,223,372,036,854,775,807"
  15.         }
  16.       ],
  17.       "correctAnswer": "A",
  18.       "questionString": "Каков диапазон значений, которые могут быть присвоены переменной типа int?"
  19.     },
  20.     {
  21.       "questionID": 2,
  22.       "questionAnswers": [
  23.         {
  24.           "aCase": "//",
  25.           "cCase": "\\",
  26.           "bCase": ";;",
  27.           "dCase": "--"
  28.         }
  29.       ],
  30.       "correctAnswer": "A",
  31.       "questionString": "Выберите правильное написание однострочного комментария"
  32.     },
  33.     {
  34.       "questionID": 3,
  35.       "questionAnswers": [
  36.         {
  37.           "aCase": "Да",
  38.           "cCase": "Нет",
  39.           "bCase": "Только для типа int",
  40.           "dCase": "Только для типа float"
  41.         }
  42.       ],
  43.       "correctAnswer": "C",
  44.       "questionString": "Данные типов со знаком имеют равное количество положительны ненулевых и отрицательных значений."
  45.     },
  46.     {
  47.       "questionID": 4,
  48.       "questionAnswers": [
  49.         {
  50.           "aCase": "100",
  51.           "cCase": "1000",
  52.           "bCase": "64",
  53.           "dCase": "32"
  54.         }
  55.       ],
  56.       "correctAnswer": "A",
  57.       "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tbyte b = 50;\n\tb = b * 2;\n\tSystem.out.println(b);\n}"
  58.     },
  59.     {
  60.       "questionID": 5,
  61.       "questionAnswers": [
  62.         {
  63.           "aCase": "1",
  64.           "cCase": "2",
  65.           "bCase": "3",
  66.           "dCase": "34"
  67.         }
  68.       ],
  69.       "correctAnswer": "D",
  70.       "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tint i = 2;\n\tdo {\n\t\tSystem.out.println(++i);\n\t} \n\twhile (i == 3);}"
  71.     },  
  72.     {
  73.       "questionID": 6,
  74.       "questionAnswers": [
  75.         {
  76.           "aCase": "11",
  77.           "cCase": "0",
  78.           "bCase": "-1",
  79.           "dCase": "Бесконечность"
  80.         }
  81.       ],
  82.       "correctAnswer": "D",
  83.       "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tSystem.out.println(11. / 0);\n}"
  84.     },
  85.     {
  86.       "questionID": 5,
  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": "Создаётся экземпляр класса t",
  103.           "cCase": "Создаётся экземпляр класса Test",
  104.           "bCase": "Создаётся экземпляр класса TestT",
  105.           "dCase": "Ошибка"
  106.         }
  107.       ],
  108.       "correctAnswer": "C",
  109.       "questionString": "Что произойдёт в результате выполнения кода?\nTest t = new Test()?"
  110.     },
  111.     {
  112.       "questionID": 9,
  113.       "questionAnswers": [
  114.         {
  115.           "aCase": "101",
  116.           "cCase": "-1",
  117.           "bCase": "0",
  118.           "dCase": "1"
  119.         }
  120.       ],
  121.       "correctAnswer": "D",
  122.       "questionString": "Что произойдёт в результате выполнения кода?\nint i = 0;\nSystem.out.println(++i)"
  123.     },  
  124.     {
  125.       "questionID": 10,
  126.       "questionAnswers": [
  127.         {
  128.           "aCase": "101",
  129.           "cCase": "-1",
  130.           "bCase": "0",
  131.           "dCase": "1"
  132.         }
  133.       ],
  134.       "correctAnswer": "B",
  135.       "questionString": "Что произойдёт в результате выполнения кода?\nint i = 0;\nSystem.out.println(i++)"
  136.     }
  137.   ]
  138. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement