Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This project aims to generate several randomly ordered booklet and their answer sheet from a single input exam sample file. The program receives an input

This project aims to generate several randomly ordered booklet and their answer sheet from a single input exam sample file. The program receives an input text file with a restricted format
(
Check the sample input file, sample.txt
)
containing tens of multiple
-
choice questions
(
assume N questions
)
and the correct answer to each question. then the user determines how many booklets
(
assume m
)
with how many questions
(
assume n
<
=
N
)
should be generated. As the output file, the program generates
2
files for each booklet, one for the questions and one for the answer sheet. in the booklets, the order of the questions should be random, and the options should be randomly changed.
Q
1
: Each class you create becomes a new
_
_
_
_
_
_
_
_
that can be used to declare variables and create objects.
a
.
package
b
.
instance
c
.
library
d
.
type.
ANS: d
.
Q
2
: You can declare new classes as needed; this is one reason Java is known as a
(
n
)
_
_
_
_
_
_
_
_
language.
a
.
portable
b
.
incremental
c
.
extensible
d
.
virtual
ANS: c
.
Q
3
: Which of the following statements is false?
a
.
Each class declaration that begins with the access modifier private must be stored in a file that has the same name as the class and ends with the
.
java filename extension.
b
.
Every class declaration contains keyword class followed immediately by the class
s name.
c
.
Class, method and variable names are identifiers.
d
.
An object has attributes that are implemented as instance variables and carried with it throughout its lifetime.
ANS: a
.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions