Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "testName": "Тест по Java",
- "testAuthor": "Bondarovich",
- "testQuestions": 10,
- "testMaxPoints": 75,
- "questions": [
- {
- "questionID": 1,
- "questionAnswers": [
- {
- "aCase": "111",
- "cCase": "147",
- "bCase": "81",
- "dCase": "144"
- }
- ],
- "correctAnswer": "A",
- "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}"
- },
- {
- "questionID": 2,
- "questionAnswers": [
- {
- "aCase": "Нет",
- "cCase": "Частично, при объявлении переменных",
- "bCase": "Да",
- "dCase": "Частично при использовании строковых типов данных"
- }
- ],
- "correctAnswer": "B",
- "questionString": "Java – регистрочувствительный язык программирования?"
- },
- {
- "questionID": 3,
- "questionAnswers": [
- {
- "aCase": "2var_",
- "cCase": "$_var12",
- "bCase": "variable",
- "dCase": "la_la#"
- }
- ],
- "correctAnswer": "B",
- "questionString": "Какой идентификатор корректный?"
- },
- {
- "questionID": 4,
- "questionAnswers": [
- {
- "aCase": "int",
- "cCase": "char",
- "bCase": "const",
- "dCase": "value"
- }
- ],
- "correctAnswer": "D",
- "questionString": "Какое ключевое слово не зарезервировано языком?"
- },
- {
- "questionID": 5,
- "questionAnswers": [
- {
- "aCase": "12.3",
- "cCase": "12.300",
- "bCase": "13.2",
- "dCase": "15.5"
- }
- ],
- "correctAnswer": "A",
- "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tfloat d = 12.3;\n\tSystem.out.println(d);\n}"
- },
- {
- "questionID": 6,
- "questionAnswers": [
- {
- "aCase": "100",
- "cCase": "1000",
- "bCase": "64",
- "dCase": "32"
- }
- ],
- "correctAnswer": "A",
- "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tbyte b = 50;\n\tb = b * 2;\n\tSystem.out.println(b);\n}"
- },
- {
- "questionID": 7,
- "questionAnswers": [
- {
- "aCase": "True",
- "cCase": "False",
- "bCase": "1",
- "dCase": "0"
- }
- ],
- "correctAnswer": "B",
- "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tint i = 11;\n\tSystem.out.println(1 % 2 == 1);\n}"
- },
- {
- "questionID": 8,
- "questionAnswers": [
- {
- "aCase": "1",
- "cCase": "2",
- "bCase": "3",
- "dCase": "34"
- }
- ],
- "correctAnswer": "D",
- "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}"
- },
- {
- "questionID": 9,
- "questionAnswers": [
- {
- "aCase": "//",
- "cCase": "\\",
- "bCase": ";;",
- "dCase": "--"
- }
- ],
- "correctAnswer": "A",
- "questionString": "Выберите правильное написание однострочного комментария"
- },
- {
- "questionID": 10,
- "questionAnswers": [
- {
- "aCase": "const int testConst = 1",
- "cCase": "const = 1",
- "bCase": "int i = 1",
- "dCase": "private int testConst = 1"
- }
- ],
- "correctAnswer": "A",
- "questionString": "Выберите правильное объявление константы"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement