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": "-2,147,483,648....2,147,483,647",
- "cCase": "-32,768....32, 767",
- "bCase": "-128...127",
- "dCase": "-9,223,372,036,854,775,808...9,223,372,036,854,775,807"
- }
- ],
- "correctAnswer": "A",
- "questionString": "Каков диапазон значений, которые могут быть присвоены переменной типа int?"
- },
- {
- "questionID": 2,
- "questionAnswers": [
- {
- "aCase": "//",
- "cCase": "\\",
- "bCase": ";;",
- "dCase": "--"
- }
- ],
- "correctAnswer": "A",
- "questionString": "Выберите правильное написание однострочного комментария"
- },
- {
- "questionID": 3,
- "questionAnswers": [
- {
- "aCase": "Да",
- "cCase": "Нет",
- "bCase": "Только для типа int",
- "dCase": "Только для типа float"
- }
- ],
- "correctAnswer": "C",
- "questionString": "Данные типов со знаком имеют равное количество положительны ненулевых и отрицательных значений."
- },
- {
- "questionID": 4,
- "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": 5,
- "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);}"
- },
- {
- "questionID": 6,
- "questionAnswers": [
- {
- "aCase": "11",
- "cCase": "0",
- "bCase": "-1",
- "dCase": "Бесконечность"
- }
- ],
- "correctAnswer": "D",
- "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tSystem.out.println(11. / 0);\n}"
- },
- {
- "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": 8,
- "questionAnswers": [
- {
- "aCase": "Создаётся экземпляр класса t",
- "cCase": "Создаётся экземпляр класса Test",
- "bCase": "Создаётся экземпляр класса TestT",
- "dCase": "Ошибка"
- }
- ],
- "correctAnswer": "C",
- "questionString": "Что произойдёт в результате выполнения кода?\nTest t = new Test()?"
- },
- {
- "questionID": 9,
- "questionAnswers": [
- {
- "aCase": "101",
- "cCase": "-1",
- "bCase": "0",
- "dCase": "1"
- }
- ],
- "correctAnswer": "D",
- "questionString": "Что произойдёт в результате выполнения кода?\nint i = 0;\nSystem.out.println(++i)"
- },
- {
- "questionID": 10,
- "questionAnswers": [
- {
- "aCase": "101",
- "cCase": "-1",
- "bCase": "0",
- "dCase": "1"
- }
- ],
- "correctAnswer": "B",
- "questionString": "Что произойдёт в результате выполнения кода?\nint i = 0;\nSystem.out.println(i++)"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement