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": "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": 2,
- "questionAnswers": [
- {
- "aCase": "15",
- "cCase": "20",
- "bCase": "1.5",
- "dCase": "2.0"
- }
- ],
- "correctAnswer": "C",
- "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\t{\n\t\tint i = 20;\n\t\tSystem.out.print(i);\n\t}\n}"
- },
- {
- "questionID": 3,
- "questionAnswers": [
- {
- "aCase": "04",
- "cCase": "03",
- "bCase": "02",
- "dCase": "05"
- }
- ],
- "correctAnswer": "C",
- "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}"
- },
- {
- "questionID": 4,
- "questionAnswers": [
- {
- "aCase": "34",
- "cCase": "32",
- "bCase": "31",
- "dCase": "43"
- }
- ],
- "correctAnswer": "A",
- "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}"
- },
- {
- "questionID": 5,
- "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": 6,
- "questionAnswers": [
- {
- "aCase": "Ошибка",
- "cCase": "Бесконечность",
- "bCase": "0",
- "dCase": "-1"
- }
- ],
- "correctAnswer": "A",
- "questionString": "Что будет выведено в результате выполнения следующей программы?\npublic static void main(String[] args) {\n\tSystem.out.println(0 / 0);\n}"
- },
- {
- "questionID": 7,
- "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": "Использовать ключевое слово public",
- "cCase": "Использовать ключевое слово private",
- "bCase": "Использовать ключевое слово static",
- "dCase": "Использовать ключевое слово final"
- }
- ],
- "correctAnswer": "B",
- "questionString": "Как сделать переменную статической"
- },
- {
- "questionID": 9,
- "questionAnswers": [
- {
- "aCase": "print(\"Java\")",
- "cCase": "System.out.println(\"Java\")",
- "bCase": "System.out.println(\"java\")",
- "dCase": "System.out.print(\"Java\")"
- }
- ],
- "correctAnswer": "C",
- "questionString": "Выберите функцию печати сообщения: \"Java\" с новой строки"
- },
- {
- "questionID": 10,
- "questionAnswers": [
- {
- "aCase": "Да",
- "cCase": "Нет",
- "bCase": "Только после некоторых",
- "dCase": "Только после заголовков функций"
- }
- ],
- "correctAnswer": "A",
- "questionString": "Обязательно ли ставить точку с запятой в конце выражений"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement