Advertisement
realanton12345

TestOne

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