Maintenance Management - 5
Match The Following
Question
Correct Answer
Repair Maintenance Course
Principles of Equipments
Safety course
Nature of Accidents
Computer training
Terminology
Staff Development courses
Hierarchy in the organisation
True/False
Question
In the drawing of machinery both views to be shown.
Correct Answer
True
Select The Blank
Question
Value analysis applies ________ approach to find out unnecessary cost.
Correct Answer
Creative
Multiple Choice Multiple Answer
Question
Development of subordinates broadly will depend on :-
Correct Answer
The level of education , The level of personal skill , The level of intelligence
Select The Blank
Question
Work order release system is the ________ to start the maintenance activity at the correct frequencies.
Correct Answer
Trigger
True/False
Question
Electrical energy is the most commonly used form of energy.
Correct Answer
True
Select The Blank
Question
The maintenance earns profit by________.
Correct Answer
Zero Faults
Select The Blank
Question
There are ________ chemicals which are in common use.
Correct Answer
60000
Select The Blank
Question
In ________ phase the plant is observed for any indications of defects.
Correct Answer
Post overhaul
Multiple Choice Multiple Answer
Question
In Maintenance Control Model following things are very important :-
Correct Answer
Lubrication Schedule , Preventive Maintenance , Inspection Schedule
Multiple Choice Single Answer
Question
Overtime working of operator make them less alert mentally & physically, this may cause :-
Correct Answer
Accident
Select The Blank
Question
A unit called ________ measures illumination.
Correct Answer
Lux
Maintenance Management - 4
True/False
Question
Preventive maintenance program reduces overall maintenance cost which also include spare cost.
Correct Answer
True
True/False
Question
Textile oil is nothing but automotive lubricative oil.
Correct Answer
False
True/False
Question
The time period for budget is taken as one year.
Correct Answer
True
True/False
Question
Now a days a trend is emerging of employing multi skilled executives who are trained in many disciplines.
Correct Answer
True
True/False
Question
Maintainability is defined as ease with which product can be serviced or repaired.
Correct Answer
True
Multiple Choice Single Answer
Question
Which qualities are required for Maintenance Inspector?
Correct Answer
Sound Judgement ability
Match The Following
Question
Correct Answer
Control System
Feedback of Information
Work Order Release System
Trigger to start activities
Technical Literature
Relevant Drawings
Progress of Work
Schedule Board
Multiple Choice Multiple Answer
Question
The subjective evaluation method characteristics are :-
Correct Answer
Attitude to change , Moral of maintenance staff , Safety consciousness
Select The Blank
Question
Adequate ________ should be provided in the design of the equipment to prevent any mishap.
Correct Answer
Interlocks, safety alarms
Select The Blank
Question
________ is extensively used in testing pressure vessels & steam pipes.
Correct Answer
Leakage Testing
Multiple Choice Single Answer
Question
How a molecule of fuel fragmented?
Correct Answer
H+ and OH-
Multiple Choice Single Answer
Question
Normally Ratio of Unplanned work to planned work is given in :-
Correct Answer
Maintenance Report & Analysis
True/False
Question
The steam trap plays a vital role in the performance of the machine.
Correct Answer
True
Multiple Choice Single Answer
Question
Proper spare part will enhance the life of equipment and will save vital :-
Correct Answer
Capital expenditure
Multiple Choice Multiple Answer
Question
Spare part can be categorized by :-
Correct Answer
The speed of use , Its value , Its availability
Multiple Choice Multiple Answer
Question
Which are the ways to release work orders?
Correct Answer
Supervisors himself issues it , To display on work order board , To put it in allotted flaps of workers
Match The Following
Question
Correct Answer
Scheduling
Necessary
Down time control
Zero
Inventory level
Low
Preventative maintenance
As per Plan
Select The Blank
Question
Maintenance department falls under ________ department.
Correct Answer
Service
Select The Blank
Question
Lubrication of machines is done________.
Correct Answer
As per schedule
Multiple Choice Single Answer
Question
Before starting evaluation of maintenance function, it is better to start with :-
Correct Answer
SWOT analysis of maintenance function
Multiple Choice Single Answer
Question
The maintenance analysis gives total down time and its percentage with respect to :-
Correct Answer
Total available period
Select The Blank
Question
The maintenance earns profit by________.
Correct Answer
Zero Faults
Multiple Choice Single Answer
Question
The modern management is composed of evaluation, refinement and integration of functional objectives into an :-
Correct Answer
Integrated corporate goal
Multiple Choice Multiple Answer
Question
The objective inventory control is :-
Correct Answer
To reduce lead time , To reduce finance cost of inventory , To reduce storage cost of material
Multiple Choice Multiple Answer
Question
The three major cost associated with inventories are :-
Correct Answer
Inventory carrying cost , Ordering cost , Stock out cost
Multiple Choice Multiple Answer
Question
The price structure of purchased equipment generally consist of :-
Correct Answer
The basic price of the machine , The nature of taxes and duties , The price of essential spares for sufficient stock, transport, Insurance etc.
Select The Blank
Question
In Japan & Western countries equipment discarded after about ________ years.
Correct Answer
7
Select The Blank
Question
Moving objects wear out giving rise to ________.
Correct Answer
Debris
Multiple Choice Single Answer
Question
Which of the following is process variable which can affect the equipment?
Correct Answer
Flow rate of process fluid
True/False
Question
Value analysis is one way to attempt for quality simplification.
Correct Answer
True
Select The Blank
Question
a ________ is the cost of money invested in stocks is usually borrowed from banks as working capital.
Correct Answer
Financing cost
True/False
Question
Defect analysis gives us information about commonly faced problems.
Correct Answer
True
Select The Blank
Question
The progress of work inside the plant can be viewed at glance by putting up a ________ in the control room.
Correct Answer
Schedule Board
Multiple Choice Multiple Answer
Question
What are the essentials of well planned lubrication system?
Correct Answer
Frequency of lubrication , Quality of lubricant , Quantity of lubricant
True/False
Question
Technology review is done to check the performance efficiency of plant.
Correct Answer
True
Select The Blank
Question
The manufacturing time for spare parts can vary from________.
Correct Answer
Zero to one year
Multiple Choice Single Answer
Question
Freight & packing/forwarding brought down to 1% from 5% is example of :-
Correct Answer
Cost reduction
Multiple Choice Multiple Answer
Question
The following costs can be treated under the heads of Wages and salaries :-
Correct Answer
The salaries of foreman, fitters, electricians etc. , Overtime charges. , Contract labor charges.
True/False
Question
Too may cooks spoil the broth.
Correct Answer
True
Multiple Choice Multiple Answer
Question
Some of the elements of the ordering cost are :-
Correct Answer
Cost of stationary used for purchase function , Depreciation for the furniture, computer & other equipments , Entertainment of vendors.
Multiple Choice Single Answer
Question
Which two departments are closely related to each other?
Correct Answer
Production & maintenance
Select The Blank
Question
________ is the period that elapses between the recognition of the need of spare parts and its fulfillment.
Correct Answer
Lead time
Multiple Choice Single Answer
Question
The responsibility of maintenance Department is to ensure cost at :-
Correct Answer
Minimum
Multiple Choice Multiple Answer
Question
Master list of all the supplier should consist of information such as :-
Correct Answer
Name, address, telephone, fax nos , Financial status , His rating for the year.
Multiple Choice Multiple Answer
Question
What should be contents of Computer training?
Correct Answer
Computer Terminology , It's use in Maintenance , How to handle it
Multiple Choice Single Answer
Question
What can be minimized by detecting an incipient fault?
Correct Answer
Damage
Multiple Choice Multiple Answer
Question
Some of the elements of inventory carrying cost are :-
Correct Answer
Storage expenses , Insurance charges , Cost of deterioration
Maintenance Management - 3
Match The Following
Question
Correct Answer
Repair Maintenance Course
Principles of Equipments
Safety course
Nature of Accidents
Computer training
Terminology
Staff Development courses
Hierarchy in the organisation
True/False
Question
In the drawing of machinery both views to be shown.
Correct Answer
True
True/False
Question
Efficiency of any machine not exceed 50%.
Correct Answer
False
Multiple Choice Single Answer
Question
It is objective of maintenance to make maximum availability of production plant at :-
Correct Answer
Minimum cost
Select The Blank
Question
If the job performed on the purchased equipment is OK in terms of quality & quantity, which was conceived at the beginning is known as ________.
Correct Answer
Proving
True/False
Question
Technology review is done to check the performance efficiency of plant.
Correct Answer
True
True/False
Question
The value analysis takes into account the used value and esteem value.
Correct Answer
True
True/False
Question
The supervisor must have good knowledge of his job, he should be able to lead by example.
Correct Answer
True
Multiple Choice Single Answer
Question
Cracks developed in machine parts is :-
Correct Answer
Mechanical Variable
Multiple Choice Single Answer
Question
Which is considered as main job of a supervisor?
Correct Answer
To train subordinate
Multiple Choice Multiple Answer
Question
From the following identify the spares :-
Correct Answer
Fuse , Relay , Nut & bolts
Match The Following
Question
Correct Answer
Objective of control of spare part
Control over the consumption of spare
Reconditioning of the spare part
Recycling of lubrication oil reusing waste water
Standardization
Bearing, V belts, flat belts
Codification of spare part
Equipment code number to which it belongs
Select The Blank
Question
In the industry major hazards which can occur is ________.
Correct Answer
Explosions
Select The Blank
Question
________ & maintenance department are closely interlinked to each other.
Correct Answer
Production
Multiple Choice Multiple Answer
Question
The performance of maintenance is indicated by :-
Correct Answer
Low cost , Low down time , More uptime
Multiple Choice Single Answer
Question
The responsibility of maintenance Department is to ensure cost at :-
Correct Answer
Minimum
True/False
Question
Technical manual is not a product support document.
Correct Answer
False
True/False
Question
On line inspection is carried out on machine itself but when it is shut down.
Correct Answer
False
Multiple Choice Multiple Answer
Question
Which of the following are metal working oils?
Correct Answer
Soluble cutting oil , Synthetic cutting oil , Srip grinding oil
Multiple Choice Multiple Answer
Question
The following costs can be treated under the heads of Wages and salaries :-
Correct Answer
The salaries of foreman, fitters, electricians etc. , Overtime charges. , Contract labor charges.
Multiple Choice Single Answer
Question
What is more important while using components like nut bolts, screws?
Correct Answer
Standardization
Multiple Choice Single Answer
Question
Name the book in which complete inventory of the buildings and plant is maintained?
Correct Answer
Assets Register
Multiple Choice Single Answer
Question
The wear-in period which occurs during initial working period, experiences lot of maintenance problems is also called :-
Correct Answer
Teething problems
Multiple Choice Single Answer
Question
Negotiation of the price also includes :-
Correct Answer
Variation of the price
Select The Blank
Question
Value analysis applies ________ approach to find out unnecessary cost.
Correct Answer
Creative
Multiple Choice Multiple Answer
Question
Development of subordinates broadly will depend on :-
Correct Answer
The level of education , The level of personal skill , The level of intelligence
Select The Blank
Question
Work order release system is the ________ to start the maintenance activity at the correct frequencies.
Correct Answer
Trigger
True/False
Question
Electrical energy is the most commonly used form of energy.
Correct Answer
True
Select The Blank
Question
The maintenance earns profit by________.
Correct Answer
Zero Faults
Select The Blank
Question
There are ________ chemicals which are in common use.
Correct Answer
60000
Select The Blank
Question
In ________ phase the plant is observed for any indications of defects.
Correct Answer
Post overhaul
Multiple Choice Multiple Answer
Question
In Maintenance Control Model following things are very important :-
Correct Answer
Lubrication Schedule , Preventive Maintenance , Inspection Schedule
Multiple Choice Single Answer
Question
Overtime working of operator make them less alert mentally & physically, this may cause :-
Correct Answer
Accident
Select The Blank
Question
A unit called ________ measures illumination.
Correct Answer
Lux
Multiple Choice Single Answer
Question
Team spirit, policy on line of authority help in bringing people together & work in one direction to :-
Correct Answer
Achieve goal
Select The Blank
Question
A ________ represents basic event which needs no further investigation as sufficient information is available under fault free analysis.
Correct Answer
Circle
Multiple Choice Single Answer
Question
It has been found that after initial period of steam pipe laying is over :-
Correct Answer
The pipeline and various fittings like valve, taps starts leaking.
Multiple Choice Multiple Answer
Question
The criticality of equipment may change with :-
Correct Answer
Time , Technology
Multiple Choice Multiple Answer
Question
Training helps in :-
Correct Answer
Knowledge of plant , Multiskilled purpose , Reduced cost
Multiple Choice Multiple Answer
Question
Which are the major hazards which can occur in Industry?
Correct Answer
Toxicity , Radioactivity , Poisons
Multiple Choice Single Answer
Question
Identify the insurance spares from the following :-
Correct Answer
Hydraulic pump of press machine
Multiple Choice Single Answer
Question
It is said that a failure never occurs without :-
Correct Answer
Warnings
True/False
Question
The operating cost of the equipment is also important factor for the decision making.
Correct Answer
True
Select The Blank
Question
________ should be allowed in case of real emergency.
Correct Answer
Contingency purchasing
Multiple Choice Multiple Answer
Question
Which type of lubricating oil & greases is available in market?
Correct Answer
Automotive lubricating oil , Railroad oils , Industrial lubricating oil
Multiple Choice Multiple Answer
Question
In condition based maintenance which equipments are used?
Correct Answer
Flexiscope , Radiography , Thermal Tester
True/False
Question
Too may cooks spoil the broth.
Correct Answer
True
1. Use of electrical motors
1. Must be close to unity
2. Power factor
2. Minimize of core losses
3. Transformer maintenance
3. Should get maximum attention
4. On load tap changer
4. Should be above unity
5. Reduces input voltage fluctuation
6. Is not an important factor
Maintenance Management - 2
True/False
Question
Value analysis is one way to attempt for quality simplification.
Correct Answer
True
True/False
Question
The lead time to take the decision is same in private sector companies and government controlled organizations.
Correct Answer
False
Multiple Choice Single Answer
Question
Installation & commissioning of a new plant is :-
Correct Answer
Single contract tasks
Multiple Choice Single Answer
Question
Who has to prepare training manuals?
Correct Answer
Maintenance Manager
Multiple Choice Multiple Answer
Question
The price of the spare part depends on :-
Correct Answer
Demand and supply position , Urgency of buyer , Level of negotiations
True/False
Question
Any equipment can be dismantled easily without the help of special tools.
Correct Answer
False
Match The Following
Question
Correct Answer
Time taken
As low as possible
Automation
Decrease break down time
Utilization of machine
As high as possible
Equipment selection
Purchase dept
True/False
Question
The hazardous chemicals are divided into 90 groups in decreasing order of hazard.
Correct Answer
False
Multiple Choice Multiple Answer
Question
The objective inventory control is :-
Correct Answer
To reduce lead time , To reduce finance cost of inventory , To reduce storage cost of material
True/False
Question
Proper communication with related departments can result in increased cost of spare.
Correct Answer
False
Multiple Choice Single Answer
Question
The leakage should be monitored by device known as :-
Correct Answer
Leakage detector
Select The Blank
Question
It is right of an inspector to get help of ________ at any time.
Correct Answer
Higher Authorities
Multiple Choice Single Answer
Question
What is the lower limit of the ratio of emergency maintenance to total maintenance time?
Correct Answer
Less then 25 %
Multiple Choice Multiple Answer
Question
High quality of workmanship helps maintenance people :-
Correct Answer
For boosting Morale of Maintenance People , In Identification of efficient workers , Rewarding Efficient Workers
Multiple Choice Single Answer
Question
Proper spare part will enhance the life of equipment and will save vital :-
Correct Answer
Capital expenditure
Multiple Choice Multiple Answer
Question
With "vendor supplies equipments" what Vendor is suppose to supply?
Correct Answer
Drawings of equipments , Drawings of electrical connection , Views of equipment
Select The Blank
Question
Availability of ________ equipment is considered while deciding maintenance system.
Correct Answer
Stand by
Multiple Choice Multiple Answer
Question
Which of the following are diagnostics instrument which are used in maintenance management?
Correct Answer
Time Tester , Safety checker for portable electrical tools , Temperature Sensitive Crayons
True/False
Question
Computers can be used to predict failures and breakdowns by simulation method well in advance.
Correct Answer
True
Multiple Choice Multiple Answer
Question
Maintenance Control system is used to check following?
Correct Answer
Correct starting time of Maintenance activities , Maintenance planning , To get correct feedback
Multiple Choice Multiple Answer
Question
Following equipment must be tested for correct load bearing capacity :-
Correct Answer
Scaffolding , Ladder , Platform
Multiple Choice Single Answer
Question
The modern management is composed of evaluation, refinement and integration of functional objectives into an :-
Correct Answer
Integrated corporate goal
Multiple Choice Single Answer
Question
To ensure high efficiency & Productivity in the maintenance work, the most important thing is :-
Correct Answer
Complete Technical Control
Multiple Choice Multiple Answer
Question
The 5 S' are related to :-
Correct Answer
Orderliness , Tideness , Purity
Multiple Choice Single Answer
Question
If equipment creates noise above permissible level then :-
Correct Answer
It may produce vibration which may affect other equipment.
Multiple Choice Single Answer
Question
What is a necessary thing, if management expects workers must do maintenance effectively?
Correct Answer
Training
Multiple Choice Multiple Answer
Question
Where CPM can be used?
Correct Answer
In Construction Business , In Research & Development Projects , Launching new products in Marketing
True/False
Question
The schedule of lubrication of equipment is not a part of maintenance plan.
Correct Answer
False
Multiple Choice Single Answer
Question
When the running machine is making sound what is to be done?
Correct Answer
Locate the noise
True/False
Question
Chart when prepared uses ' half split' method of fault diagnosis.
Correct Answer
True
Multiple Choice Multiple Answer
Question
Water as a fire extinguisher can be applied which is in the form of :-
Correct Answer
Solid stream , Fine spray , Foam
Multiple Choice Single Answer
Question
Automation of machines is mainly done for :-
Correct Answer
Detecting the failures and save time
Select The Blank
Question
________ is the period that elapses between the recognition of the need of spare parts and its fulfillment.
Correct Answer
Lead time
Select The Blank
Question
________ are used to monitor the conditions of parts subject to strains due to vibrations in operating conditions.
Correct Answer
Strain Gages
Multiple Choice Multiple Answer
Question
What is VEN in VEIN analysis?
Correct Answer
Time , Technology
Select The Blank
Question
One of the main jobs of ________ is to train the subordinates.
Correct Answer
Supervisor
Match The Following
Question
Correct Answer
Factory building
Cross ventilation
Foreign origin equipment
Manual translation into English
Non standard spare parts
Maximum lead time
Steam piping
Proper Insulation
Select The Blank
Question
Quality should not be ________ at the cost of lower price.
Correct Answer
Sacrificed
Multiple Choice Multiple Answer
Question
What may be the result of too many levels of authority?
Correct Answer
Overlapping of duties , Confusion , No work done
True/False
Question
Some equipments are patented so manufacturing of spares is possible.
Correct Answer
False
True/False
Question
Oil pump is lubricating equipment.
Correct Answer
True
Select The Blank
Question
Adequate ________ should be provided in the design of the equipment to prevent any mishap.
Correct Answer
Interlocks, safety alarms
Select The Blank
Question
To achieve high reliability we should select ________.
Correct Answer
Trouble free operation machine
Select The Blank
Question
________ is schedule of overhaul & schedule of calibrating the equipment.
Correct Answer
Maintenance schedule
Select The Blank
Question
The wear out portion has ________ failure rates.
Correct Answer
Highest
Select The Blank
Question
The spark can be generated due to ________ faults.
Correct Answer
Phase to phase
Multiple Choice Single Answer
Question
What is necessary under good house keeping to avoid sparks & ignition?
Correct Answer
Well designed equipments
Maintenance Management - 1
Question Which of the following of the main qualities of lubricant?
Answer Viscosity , Antiwear property , Alkalinity
Select The Blank
Question
________ & maintenance department are closely interlinked to each other.
Correct Answer
Production
Select The Blank
Question
Quality should not be ________ at the cost of lower price.
Correct Answer
Sacrificed
Multiple Choice Multiple Answer
Question
In the objective evaluation method, the performance indicators are :-
Correct Answer
Spare part ratio , Overtime ratio , Availability of plant ratio
True/False
Question
Shelves, Closets such fittings are consider as costing centers for buildings in the assets register.
Correct Answer
True
Multiple Choice Single Answer
Question
There could be leakage of air from system due to wrong setting of :-
Correct Answer
Safety valve
Multiple Choice Single Answer
Question
The planned maintenance is carried out :-
Correct Answer
As per manufacturers recommendations
Select The Blank
Question
Time required to diagnose is about ________ percent to total down time.
Correct Answer
40-80
Select The Blank
Question
________ should be planned so that workers can approach the equipment easily.
Correct Answer
Gangways
Multiple Choice Single Answer
Question
Which activity is known as great helper for in avoiding unscheduled breakdowns?
Correct Answer
Inspection activity
Multiple Choice Multiple Answer
Question
Cost control can be achieved by :-
Correct Answer
Establishment of optimum conditions , Measurement of variation from optimum , Taking corrective action
True/False
Question
Spare parts are also stored to cater to emergency events like strike of transporters, strike at the supplier workshop, flood, Heavy rain etc.
Correct Answer
True
True/False
Question
Chart when prepared uses ' half split' method of fault diagnosis.
Correct Answer
True
Multiple Choice Multiple Answer
Question
Which are probable period of annual shut Downs in the Year?
Correct Answer
Demand for a product is Low , Festival Seasons , Supply of Raw material is nil.
Select The Blank
Question
Maintenance department's ________ shows low performance.
Correct Answer
High cost
Multiple Choice Multiple Answer
Question
Fire can be extinguished by?
Correct Answer
Taking away heat , Stopping oxygen , Chemical extinguishing
Multiple Choice Single Answer
Question
As the frequency of maintenance is stepped up preventive maintenance cost :-
Correct Answer
Shoots up
True/False
Question
It is said that budgetary process is more a test of implementation skill then anything else.
Correct Answer
False
Multiple Choice Multiple Answer
Question
Maintenance Control system is used to check following?
Correct Answer
Maintenance planning , To get correct feedback , Correct starting time of Maintenance activities
True/False
Question
Some equipments are patented so manufacturing of spares is possible.
Correct Answer
False
Multiple Choice Multiple Answer
Question
Where CPM can be used?
Correct Answer
In Construction Business , In Research & Development Projects , Launching new products in Marketing
Multiple Choice Single Answer
Question
Which factor affects the safety of plant & people working in & around it?
Correct Answer
Accident
Multiple Choice Single Answer
Question
What is the requirement of effective & timely maintenance?
Correct Answer
Organizational Support
Multiple Choice Multiple Answer
Question
First aid can be given in following accidents :-
Correct Answer
Steam burns , Chemical spilling
Multiple Choice Multiple Answer
Question
High quality of workmanship helps maintenance people :-
Correct Answer
For boosting Morale of Maintenance People , In Identification of efficient workers , Rewarding Efficient Workers
Multiple Choice Single Answer
Question
Negotiation of the price also includes :-
Correct Answer
Variation of the price
Multiple Choice Multiple Answer
Question
Following equipment must be tested for correct load bearing capacity :-
Correct Answer
Scaffolding , Ladder , Platform
Multiple Choice Single Answer
Question
Generally insurance spare parts are purchased :-
Correct Answer
Along with original equipment
Multiple Choice Single Answer
Question
In any organization generally called thankless department is :-
Correct Answer
Maintenance
Multiple Choice Multiple Answer
Question
Which of the following are diagnostic instruments normally used in maintenance engineering?
Correct Answer
Pocket Thermometer , Ultrasonic Hardness Testing , Static Meter
True/False
Question
Use of fine water spray is very wrong way of fire extinguishing.
Correct Answer
False
Select The Blank
Question
In the Start up of plant phase, plant is subjected to ________ where water being used in place of process fluid.
Correct Answer
Water trial
Multiple Choice Single Answer
Question
How steam act as cooling agent to extinguishing fire?
Correct Answer
Absorbs heat from fire
Select The Blank
Question
The efforts are made to reduce time/effort required in carrying out maintenance work is ________.
Correct Answer
Design-in-maintenance
Select The Blank
Question
Reliability can be expressed as probability between________.
Correct Answer
0 to 1
Select The Blank
Question
It is estimated that during first year the maintenance cost may approximately about ________ more than the normal cost during subsequent years.
Correct Answer
0.2
True/False
Question
Calibration is an important function of maintenance manager.
Correct Answer
True
Select The Blank
Question
The ________ is done to check performance efficiency of a plant.
Correct Answer
Technological Review
True/False
Question
The operating cost of the equipment is also important factor for the decision making.
Correct Answer
True
Match The Following
Question
Correct Answer
Maintenance schedule
Schedule of over
Technical data
Drawings
Technical specification
Technical description
Handling Instruction
Transportation
Match The Following
Question
Correct Answer
Factory building
Cross ventilation
Foreign origin equipment
Manual translation into English
Non standard spare parts
Maximum lead time
Steam piping
Proper Insulation
True/False
Question
The budgetary control is planned to assist the management in the allocation of responsibility and authority to aid in making estimates and plans for the future.
Correct Answer
True
Multiple Choice Single Answer
Question
To avoid accidents & to have proper staff training, supplier must ensure that :-
Correct Answer
Complete technical help is supplied in writing to the plant engineers.
Multiple Choice Multiple Answer
Question
Which of the following are metal working oils?
Correct Answer
Soluble cutting oil , Synthetic cutting oil , Srip grinding oil
Select The Blank
Question
All ________ requirements by various government authorities must be followed.
Correct Answer
Recommended
True/False
Question
Computers can be used to predict failures and breakdowns by simulation method well in advance.
Correct Answer
True
Multiple Choice Single Answer
Question
As maintenance involves Time & Money, recordings of it is important. These records are known as :-
Correct Answer
Maintenance Record
Dear Students,Welcome to the Symbiosis Center for Distance Learning(SCDL) blog. We are destined to help you those students of SCDL who are doing post graduate diplomas in management from Symbiosis Center for Distance Learning SCDL Pune. Here they can find solved assignments, exam related informations and guidance.Soon It will contain assignments for PGDBA, PGDIM, PGDHRM, PGDIB, PGDIT.
Thursday, October 27, 2011
Java Programming - 25
Java Programming - 25
Multiple Choice Multiple Answer
Question Which are the two threads of java?
Correct Answer mainthread( ) , childthread( )
Multiple Choice Single Answer
Question How can class be imported from a package to a program?
Correct Answer import java.packagename.classname
Multiple Choice Single Answer
Question Which keyword is used to create an instance of a class?
Correct Answer new
Multiple Choice Single Answer
Question Multiple Choice Single Response
Correct Answer Object oriented programming.
Multiple Choice Single Answer
Question Which is the default access modifier for an interface method?
Correct Answer public
Multiple Choice Single Answer
Question How multidimensional array is declared?
Correct Answer int[4] [5];
Multiple Choice Multiple Answer
Question What returns a reference to the thread in which it is called?
Correct Answer Method , Class , Object
True/False
Question Casting occurs commonly between numeric types
Correct Answer True
Select The Blank
Question Start( )executes a call to ________.
Correct Answer run( )
True/False
Question Running threads can be suspended, which temporarily suspends its activity.
Correct Answer True
Select The Blank
Question A ________ is a subclass of itself.
Correct Answer Class
Multiple Choice Single Answer
Question How many concrete classes can you have inside an interface?
Correct Answer none
Multiple Choice Single Answer
Question Java Applets are intelligent programs means :-
Correct Answer They can react to user input and dynamically change.
Multiple Choice Single Answer
Question Which of the following can be referenced by 'this' variable?
Correct Answer The instance variables and methods of a class
True/False
Question A thread's priority is used to decide when to switch from one running thread to the
next, this is called as the context switch.
Correct Answer True
True/False
Question Object oriented programming organizes a program around processes acting on data.
Correct Answer False
Multiple Choice Multiple Answer
Question Which of these lines of code will compile?
Correct Answer short s = 20; , char c = 32; , double d = 1.4;
Select The Blank
Question ________ are stored in hierarchical manner.
Correct Answer Packages
Multiple Choice Multiple Answer
Question What are different data types in java?
Correct Answer char , double , byte
Multiple Choice Single Answer
Question Select the facility provided along with JVM which enhances speed of execution :-
Correct Answer Just-In-Time (JIT) compiler.
Match The Following
Question -Correct Answer
The data, or variable, defined within a class- Instance variable.
General form of Cast -(target--type)value
Determine the relationship that one operand has to the other -Relational Operator
The secondary versions of the-Boolean AND and OR operators
Short-Circuit Logical Operators Short-Circuit Logical Operators
Multiple Choice Multiple Answer
Question Modulus operator % can be applied to these data types :-
Correct Answer floating Point , Integer , Character
Multiple Choice Multiple Answer
Question Expression must be of the data types :-
Correct Answer Byte , Short , Int
Select The Blank
Question For externalizable objects the ________ is solely responsible for the external format
of its contents.
Correct Answer Class
Multiple Choice Single Answer
Question Using which keyword we can fully abstract a class?
Correct Answer interface
Select The Blank
Question The ________ repeat a set of code while the condition is false.
Correct Answer While loop
Multiple Choice Multiple Answer
Question Which of the following are mathematical Expressions?
Correct Answer (+ +) , (+ =) , (- =)
Multiple Choice Single Answer
Question Which method is used to determine the class of an object?
Correct Answer getClass( ) method
Select The Blank
Question The mechanism which binds together the code and data and keeps both safe is
________.
Correct Answer Encapsulation
True/False
Question Java compiler stores the .class files in the path specified in CLASSPATH
environmental variable.
Correct Answer False
Multiple Choice Single Answer
Question Java was developed at :-
Correct Answer Sun Microsystems
Multiple Choice Single Answer
Question What are the kinds of variables in Java?
Correct Answer Instance, local, class variables
True/False
Question If the break statement is omited in switch statement, then execution will continue on
into the next case.
Correct Answer True
Multiple Choice Multiple Answer
Question Java defines two ways when instantiating an object, such as :-
Correct Answer Can implement the runnable interface , Can extend the thread class
Multiple Choice Multiple Answer
Question The source for the frist package defines three classes
Correct Answer Protection , Derived , SamePackage
Multiple Choice Multiple Answer
Question Exit statement is optional in which loops in java?
Correct Answer While , Do-while , For
Select The Blank
Question In ________ statement condition is true, then statement 1 is executed.
Correct Answer If
Multiple Choice Single Answer
Question What are the possible access modifiers while implementing interface methods?
Correct Answer public
Multiple Choice Multiple Answer
Question Which is a public static member of thread?
Correct Answer currenthread( ) , mainthread( )
Select The Blank
Question The ________ repeats a set of code at least once before the condition is tested.
Correct Answer Do-while loop
True/False
Question A thread can be blocked when waiting for a resource.
Correct Answer True
Select The Blank
Question A ________can implement more than one interface.
Correct Answer Class
True/False
Question Boolean values can be cast into any other primitive type.
Correct Answer False
True/False
Question Constructors can be overloaded like regular methods.
Correct Answer True
Select The Blank
Question The name of the new thread is specified by ________.
Correct Answer threadName
Multiple Choice Single Answer
Question A Java application can execute anywhere on the network, this implements that Java is :-
Correct Answer Architecture neutral
Match The Following
Question -Correct Answer
It can have only one of two possible values- Boolean type
Float hightemp, lowtemp -Float variable declarations
Smallest int type- Byte
Floating point numbers are also known as- Real Numbers
JAVA Programming - 24
Multiple Choice Single Answer
Question What is meant by garbage collection?
Correct Answer Object is no longer referred to by any variable
Multiple Choice Single Answer
Question How can class be imported from a package to a program?
Correct Answer import java.packagename.classname
Select The Blank
Question The ________ is similar to break, except that instead of halting the execution of the loop, it
starts the next iteration.
Correct Answer Continue
Multiple Choice Single Answer
Question Which Control Statements enable program execution to repeat one or more statements?
Correct Answer Iteration
Select The Blank
Question The ________ loop is java's most fundamental looping statement.
Correct Answer While
Select The Blank
Question Java defines ________ Primitive type of data.
Correct Answer Eight 8 simple types of data: byte, short, int, long (INTEGERS), float, double(FLOATING
TYPE), char, and Boolean
True/False
Question Boolean data types have only Yes or No value.
Correct Answer True
Multiple Choice Multiple Answer
Question Within what Java provides many levels of protection to allow control over the visiblity of
variables and methods?
Correct Answer Classes , Subclasses , Packages
Multiple Choice Single Answer
Question Java was developed at :-
Correct Answer Sun Microsystems
Multiple Choice Single Answer
Question Select the facility provided along with JVM which enhances speed of execution: -
Correct Answer Just-In-Time (JIT) compiler
True/False
Question If the break statement is omitted in switch statement, then execution will continue on into
the next case.
Correct Answer True
Multiple Choice Multiple Answer
Question What are the programming constructs?
Correct Answer Sequential , Selection -- if and switch statements , Iteration -- for loop, while loop and dowhile
loop
Multiple Choice Single Answer
Question Which statement will always execute the body of a loop at least once?
Correct Answer Do
True/False
Question A suspended thread can then be resumed allowing it to pick up where it left off.
Correct Answer True
True/False
Question The Switch statement can have multiple cases without a break statements between them.
Correct Answer True
Multiple Choice Multiple Answer
Question Which of the following are mathematical Expressions?
Correct Answer (+ +) , (+ =) , (- =)
True/False
Question In Interface we need not use the keyword abstract for the methods.
Correct Answer True
Multiple Choice Single Answer
Question Syntax to declare a variable in java is :-
Correct Answer type identifier [=value][,identifier[=value]…]
Select The Blank
Question The range of Byte is ________
Correct Answer (-128 to 127)
Select The Blank
Question The mechanism by which java frees the memory occupied by unused objects is ________.
Correct Answer Garbage Collection
Multiple Choice Multiple Answer
Question What are different data types in java?
Correct Answer char , double , byte
Select The Blank
Question ________ is the logical construct upon which the entire java language is built.
Correct Answer Class
Multiple Choice Multiple Answer
Question Method definition has four parts, they are :-
Correct Answer Name of the method , Type of object , List of parameters
Match The Following
Question -Correct Answer
For statement -Initialization, condition, iteration
Multi way branch statement -Switch statement
To terminate the statement -Break
Iteration statement- Do while
Multiple Choice Single Answer
Question A Java application can execute anywhere on the network, this implements that Java is :-
Correct Answer Architecture neutral
Select The Blank
Question ________ is referred by a variable candidate for garbage collection when the variable
goes out of scope.
Correct Answer Objects
Multiple Choice Multiple Answer
Question Features of Java applets are :-
Correct Answer They can be transmitted over internet , Require java enabled web browser
Multiple Choice Multiple Answer
Question Packages act as containers for :-
Correct Answer Classes , Subordinate packages
Multiple Choice Single Answer
Question What is a string?
Correct Answer A combination of characters called as string
Multiple Choice Single Answer
Question Multiple Choice Single Response
Correct Answer Object oriented programming.
Select The Blank
Question The ________ repeats a set of code at least once before the condition is tested.
Correct Answer Do-while loop
True/False
Question Range of char data type in java is 0 to 65,536.
Correct Answer True
Multiple Choice Single Answer
Question How is it possible to use few methods of an interface in a class?
Correct Answer By declaring the class as abstract
True/False
Question Casting between primitive types allows conversion of one primitive type to another.
Correct Answer True
Multiple Choice Multiple Answer
Question Which of these lines of code will compile?
Correct Answer short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question What are the Logical operators?
Correct Answer OR() , AND(&) , XOR(^)
True/False
Question When for loop start the execution, the initialization portion of the loop is executed.
Correct Answer True
Match The Following
Question- Correct Answer
Class -New data type
Passing by value- Methods - pass by value
Passing by reference- Objects – pass by reference
Methods and variable- Members of class
Multiple Choice Single Answer
Question Which statement defines a name space in which classes are stored?
Correct Answer package
Select The Blank
Question ________can be extended.
Correct Answer Interface
Multiple Choice Single Answer
Question Java Applets are intelligent programs means :-
Correct Answer They can react to user input and dynamically change.
Multiple Choice Single Answer
Question Which of the following is used to get the value of the instance variables?
Correct Answer Dot Notation
Multiple Choice Multiple Answer
Question Which statements can be used with the java's loop?
Correct Answer Jump , Continue , Break
Multiple Choice Multiple Answer
Question Java Operators can be divided into these groups :-
Correct Answer Arithmetic , Bitwise , Relational
Multiple Choice Single Answer
Question Which is the default access modifier for an interface method?
Correct Answer public
Select The Blank
Question Anything declared ________ can be accessed from anywhere within program.
Correct Answer Public
Select The Blank
Question Java virtual machine works as ________ for the the bytecode.
Correct Answer Interpreter
JAVA Programming - 23
True/False
Question Casting occurs commonly between numeric types
Correct Answer True
Multiple Choice Multiple Answer
Question When might your program wish to run the garbage collector?
Correct Answer Before it enters a compute-intense section of code , Before it enters a
memory-intense section of code , When it knows there will be some idle time
Multiple Choice Single Answer
Question What are members of the threads class?
Correct Answer Method
True/False
Question Boolean data type have only Yes or No value.
Correct Answer True
Select The Blank
Question The ________ loop is java's most fundamental looping statement.
Correct Answer While
Multiple Choice Single Answer
Question In multithreaded program each part of such program is called :-
Correct Answer Thread
Multiple Choice Multiple Answer
Question Which of the following are mathematical Expressions?
Correct Answer (+ +) , (+ =) , (- =)
True/False
Question A thread can be blocked when waiting for a resource.
Correct Answer True
True/False
Question Each class in java can have a finalizer method.
Correct Answer True
Multiple Choice Single Answer
Question Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer Break
True/False
Question As abstract class must have at least one abstract method and others may be
concrete or abstract.
Correct Answer True
Multiple Choice Single Answer
Question The argument to which specifies the delayperiod in milliseconds
Correct Answer sleep( )
Select The Blank
Question When java program starts up, one thread begin runing and it is called
________thread.
Correct Answer main( )
Multiple Choice Single Answer
Question class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0;
z = i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is
output of the above program?
Correct Answer The value assigned is 20
True/False
Question When for loop start the execution, the initialization portion of the loop is executed.
Correct Answer True
Select The Blank
Question ________ variables are declared by use of the Byte Keyword.
Correct Answer Byte
Multiple Choice Single Answer
Question Which cast must be used to cast an object to another class?
Correct Answer Specific cast.
Multiple Choice Multiple Answer
Question Which are keywords in Java?
Correct Answer Extends , Synchronized , Sizeof
Multiple Choice Multiple Answer
Question What are different data types in java?
Correct Answer char , double , byte
Match The Following
Question- Correct Answer
The Operators used in mathematical expressions Arithmetic Operator (= operator;)
Order in which operators are evaluated in expressions. Order of precedence Order of precedence
Whether an expression is evaluated left-to-right or right-to-left. Associativity Associativity
Java operator syntax for right associativity (= operator;) Comparison Operator
Multiple Choice Single Answer
Question Java uses which system to store packages?
Correct Answer File system directories
True/False
Question Constructors can be overloaded like regular methods.
Correct Answer True
Multiple Choice Multiple Answer
Question What are different modifiers?
Correct Answer Private , Protected , Final
Select The Blank
Question After the new thread is created, it will not start running until you call its
________method.
Correct Answer start( )
Select The Blank
Question The ________ repeats a set of code at least once before the condition is tested.
Correct Answer Do-while loop
Select The Blank
Question ________ loop repeats a statement or block while its controlling expressions is true.
Correct Answer While
Match The Following
Question -Correct Answer
The data, or variable, defined within a class- Instance variable.
General form of Cast -(target--type)value
Determine the relationship that one operand has to the other -Relational Operator
The secondary versions of the Boolean AND and OR operators Short-Circuit Logical Operators
Short-Circuit Logical Operators
Multiple Choice Multiple Answer
Question The Bitwise Logical Operators are :-
Correct Answer ^ , ^= , <<
Select The Blank
Question The name of the new thread is specified by ________.
Correct Answer threadName
Select The Blank
Question ________ is probably the least used java data type
Correct Answer short
Multiple Choice Single Answer
Question How to change the values of the elements of the array?
Correct Answer By using array subscript expression
Multiple Choice Single Answer
Question What is declared within the file that will belong to the specified pacakage?
Correct Answer classes
Multiple Choice Single Answer
Question How many concrete classes can you have inside an interface?
Correct Answer none
True/False
Question A thread's priority is used to decide when to switch from one running thread to the
next, this is called as the context switch.
Correct Answer True
Select The Blank
Question A class is ________ for an objects in java.
Correct Answer Template
Select The Blank
Question Anonymous classes be implemented in an ________.
Correct Answer Interface
True/False
Question When an object is referenced, it mean that it has been identified by the finalizer
method for garbage collection.
Correct Answer False
Multiple Choice Multiple Answer
Question Features of Java applets are :-
Correct Answer They can be transmitted over internet , Require java enabled web browser
Multiple Choice Multiple Answer
Question Classes usually consist of two things such as :-
Correct Answer Instance variable , Methods
Multiple Choice Multiple Answer
Question Main thread is important for which two reasons?
Correct Answer It is thread from which other "child" thread will be swapped , Often it must be
the last thread to finish execution because It performs various shutdown actions
True/False
Question If the break statement is omited in switch statement, then execution will continue on
into the next case.
Correct Answer True
Multiple Choice Multiple Answer
Question Which are the two threads of java?
Correct Answer mainthread( ) , childthread( )
Select The Blank
Question The ________ repeat a set of code while the condition is false.
Correct Answer While loop
Multiple Choice Multiple Answer
Question Which of these lines of code will compile?
Correct Answer short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question What are means of encapsulating and containing the name space and scope of
variables and methods?
Correct Answer Classes , Packages , Subclasses
Multiple Choice Single Answer
Question How is it possible to use few methods of an interface in a class?
Correct Answer By declaring the class as abstract
Multiple Choice Single Answer
Question Which statement will always execute the body of a loop at least once?
Correct Answer Do
Multiple Choice Multiple Answer
Question Which are the two threads of java?
Correct Answer mainthread( ) , childthread( )
Multiple Choice Single Answer
Question How can class be imported from a package to a program?
Correct Answer import java.packagename.classname
Multiple Choice Single Answer
Question Which keyword is used to create an instance of a class?
Correct Answer new
Multiple Choice Single Answer
Question Multiple Choice Single Response
Correct Answer Object oriented programming.
Multiple Choice Single Answer
Question Which is the default access modifier for an interface method?
Correct Answer public
Multiple Choice Single Answer
Question How multidimensional array is declared?
Correct Answer int[4] [5];
Multiple Choice Multiple Answer
Question What returns a reference to the thread in which it is called?
Correct Answer Method , Class , Object
True/False
Question Casting occurs commonly between numeric types
Correct Answer True
Select The Blank
Question Start( )executes a call to ________.
Correct Answer run( )
True/False
Question Running threads can be suspended, which temporarily suspends its activity.
Correct Answer True
Select The Blank
Question A ________ is a subclass of itself.
Correct Answer Class
Multiple Choice Single Answer
Question How many concrete classes can you have inside an interface?
Correct Answer none
Multiple Choice Single Answer
Question Java Applets are intelligent programs means :-
Correct Answer They can react to user input and dynamically change.
Multiple Choice Single Answer
Question Which of the following can be referenced by 'this' variable?
Correct Answer The instance variables and methods of a class
True/False
Question A thread's priority is used to decide when to switch from one running thread to the
next, this is called as the context switch.
Correct Answer True
True/False
Question Object oriented programming organizes a program around processes acting on data.
Correct Answer False
Multiple Choice Multiple Answer
Question Which of these lines of code will compile?
Correct Answer short s = 20; , char c = 32; , double d = 1.4;
Select The Blank
Question ________ are stored in hierarchical manner.
Correct Answer Packages
Multiple Choice Multiple Answer
Question What are different data types in java?
Correct Answer char , double , byte
Multiple Choice Single Answer
Question Select the facility provided along with JVM which enhances speed of execution :-
Correct Answer Just-In-Time (JIT) compiler.
Match The Following
Question -Correct Answer
The data, or variable, defined within a class- Instance variable.
General form of Cast -(target--type)value
Determine the relationship that one operand has to the other -Relational Operator
The secondary versions of the-Boolean AND and OR operators
Short-Circuit Logical Operators Short-Circuit Logical Operators
Multiple Choice Multiple Answer
Question Modulus operator % can be applied to these data types :-
Correct Answer floating Point , Integer , Character
Multiple Choice Multiple Answer
Question Expression must be of the data types :-
Correct Answer Byte , Short , Int
Select The Blank
Question For externalizable objects the ________ is solely responsible for the external format
of its contents.
Correct Answer Class
Multiple Choice Single Answer
Question Using which keyword we can fully abstract a class?
Correct Answer interface
Select The Blank
Question The ________ repeat a set of code while the condition is false.
Correct Answer While loop
Multiple Choice Multiple Answer
Question Which of the following are mathematical Expressions?
Correct Answer (+ +) , (+ =) , (- =)
Multiple Choice Single Answer
Question Which method is used to determine the class of an object?
Correct Answer getClass( ) method
Select The Blank
Question The mechanism which binds together the code and data and keeps both safe is
________.
Correct Answer Encapsulation
True/False
Question Java compiler stores the .class files in the path specified in CLASSPATH
environmental variable.
Correct Answer False
Multiple Choice Single Answer
Question Java was developed at :-
Correct Answer Sun Microsystems
Multiple Choice Single Answer
Question What are the kinds of variables in Java?
Correct Answer Instance, local, class variables
True/False
Question If the break statement is omited in switch statement, then execution will continue on
into the next case.
Correct Answer True
Multiple Choice Multiple Answer
Question Java defines two ways when instantiating an object, such as :-
Correct Answer Can implement the runnable interface , Can extend the thread class
Multiple Choice Multiple Answer
Question The source for the frist package defines three classes
Correct Answer Protection , Derived , SamePackage
Multiple Choice Multiple Answer
Question Exit statement is optional in which loops in java?
Correct Answer While , Do-while , For
Select The Blank
Question In ________ statement condition is true, then statement 1 is executed.
Correct Answer If
Multiple Choice Single Answer
Question What are the possible access modifiers while implementing interface methods?
Correct Answer public
Multiple Choice Multiple Answer
Question Which is a public static member of thread?
Correct Answer currenthread( ) , mainthread( )
Select The Blank
Question The ________ repeats a set of code at least once before the condition is tested.
Correct Answer Do-while loop
True/False
Question A thread can be blocked when waiting for a resource.
Correct Answer True
Select The Blank
Question A ________can implement more than one interface.
Correct Answer Class
True/False
Question Boolean values can be cast into any other primitive type.
Correct Answer False
True/False
Question Constructors can be overloaded like regular methods.
Correct Answer True
Select The Blank
Question The name of the new thread is specified by ________.
Correct Answer threadName
Multiple Choice Single Answer
Question A Java application can execute anywhere on the network, this implements that Java is :-
Correct Answer Architecture neutral
Match The Following
Question -Correct Answer
It can have only one of two possible values- Boolean type
Float hightemp, lowtemp -Float variable declarations
Smallest int type- Byte
Floating point numbers are also known as- Real Numbers
JAVA Programming - 24
Multiple Choice Single Answer
Question What is meant by garbage collection?
Correct Answer Object is no longer referred to by any variable
Multiple Choice Single Answer
Question How can class be imported from a package to a program?
Correct Answer import java.packagename.classname
Select The Blank
Question The ________ is similar to break, except that instead of halting the execution of the loop, it
starts the next iteration.
Correct Answer Continue
Multiple Choice Single Answer
Question Which Control Statements enable program execution to repeat one or more statements?
Correct Answer Iteration
Select The Blank
Question The ________ loop is java's most fundamental looping statement.
Correct Answer While
Select The Blank
Question Java defines ________ Primitive type of data.
Correct Answer Eight 8 simple types of data: byte, short, int, long (INTEGERS), float, double(FLOATING
TYPE), char, and Boolean
True/False
Question Boolean data types have only Yes or No value.
Correct Answer True
Multiple Choice Multiple Answer
Question Within what Java provides many levels of protection to allow control over the visiblity of
variables and methods?
Correct Answer Classes , Subclasses , Packages
Multiple Choice Single Answer
Question Java was developed at :-
Correct Answer Sun Microsystems
Multiple Choice Single Answer
Question Select the facility provided along with JVM which enhances speed of execution: -
Correct Answer Just-In-Time (JIT) compiler
True/False
Question If the break statement is omitted in switch statement, then execution will continue on into
the next case.
Correct Answer True
Multiple Choice Multiple Answer
Question What are the programming constructs?
Correct Answer Sequential , Selection -- if and switch statements , Iteration -- for loop, while loop and dowhile
loop
Multiple Choice Single Answer
Question Which statement will always execute the body of a loop at least once?
Correct Answer Do
True/False
Question A suspended thread can then be resumed allowing it to pick up where it left off.
Correct Answer True
True/False
Question The Switch statement can have multiple cases without a break statements between them.
Correct Answer True
Multiple Choice Multiple Answer
Question Which of the following are mathematical Expressions?
Correct Answer (+ +) , (+ =) , (- =)
True/False
Question In Interface we need not use the keyword abstract for the methods.
Correct Answer True
Multiple Choice Single Answer
Question Syntax to declare a variable in java is :-
Correct Answer type identifier [=value][,identifier[=value]…]
Select The Blank
Question The range of Byte is ________
Correct Answer (-128 to 127)
Select The Blank
Question The mechanism by which java frees the memory occupied by unused objects is ________.
Correct Answer Garbage Collection
Multiple Choice Multiple Answer
Question What are different data types in java?
Correct Answer char , double , byte
Select The Blank
Question ________ is the logical construct upon which the entire java language is built.
Correct Answer Class
Multiple Choice Multiple Answer
Question Method definition has four parts, they are :-
Correct Answer Name of the method , Type of object , List of parameters
Match The Following
Question -Correct Answer
For statement -Initialization, condition, iteration
Multi way branch statement -Switch statement
To terminate the statement -Break
Iteration statement- Do while
Multiple Choice Single Answer
Question A Java application can execute anywhere on the network, this implements that Java is :-
Correct Answer Architecture neutral
Select The Blank
Question ________ is referred by a variable candidate for garbage collection when the variable
goes out of scope.
Correct Answer Objects
Multiple Choice Multiple Answer
Question Features of Java applets are :-
Correct Answer They can be transmitted over internet , Require java enabled web browser
Multiple Choice Multiple Answer
Question Packages act as containers for :-
Correct Answer Classes , Subordinate packages
Multiple Choice Single Answer
Question What is a string?
Correct Answer A combination of characters called as string
Multiple Choice Single Answer
Question Multiple Choice Single Response
Correct Answer Object oriented programming.
Select The Blank
Question The ________ repeats a set of code at least once before the condition is tested.
Correct Answer Do-while loop
True/False
Question Range of char data type in java is 0 to 65,536.
Correct Answer True
Multiple Choice Single Answer
Question How is it possible to use few methods of an interface in a class?
Correct Answer By declaring the class as abstract
True/False
Question Casting between primitive types allows conversion of one primitive type to another.
Correct Answer True
Multiple Choice Multiple Answer
Question Which of these lines of code will compile?
Correct Answer short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question What are the Logical operators?
Correct Answer OR() , AND(&) , XOR(^)
True/False
Question When for loop start the execution, the initialization portion of the loop is executed.
Correct Answer True
Match The Following
Question- Correct Answer
Class -New data type
Passing by value- Methods - pass by value
Passing by reference- Objects – pass by reference
Methods and variable- Members of class
Multiple Choice Single Answer
Question Which statement defines a name space in which classes are stored?
Correct Answer package
Select The Blank
Question ________can be extended.
Correct Answer Interface
Multiple Choice Single Answer
Question Java Applets are intelligent programs means :-
Correct Answer They can react to user input and dynamically change.
Multiple Choice Single Answer
Question Which of the following is used to get the value of the instance variables?
Correct Answer Dot Notation
Multiple Choice Multiple Answer
Question Which statements can be used with the java's loop?
Correct Answer Jump , Continue , Break
Multiple Choice Multiple Answer
Question Java Operators can be divided into these groups :-
Correct Answer Arithmetic , Bitwise , Relational
Multiple Choice Single Answer
Question Which is the default access modifier for an interface method?
Correct Answer public
Select The Blank
Question Anything declared ________ can be accessed from anywhere within program.
Correct Answer Public
Select The Blank
Question Java virtual machine works as ________ for the the bytecode.
Correct Answer Interpreter
JAVA Programming - 23
True/False
Question Casting occurs commonly between numeric types
Correct Answer True
Multiple Choice Multiple Answer
Question When might your program wish to run the garbage collector?
Correct Answer Before it enters a compute-intense section of code , Before it enters a
memory-intense section of code , When it knows there will be some idle time
Multiple Choice Single Answer
Question What are members of the threads class?
Correct Answer Method
True/False
Question Boolean data type have only Yes or No value.
Correct Answer True
Select The Blank
Question The ________ loop is java's most fundamental looping statement.
Correct Answer While
Multiple Choice Single Answer
Question In multithreaded program each part of such program is called :-
Correct Answer Thread
Multiple Choice Multiple Answer
Question Which of the following are mathematical Expressions?
Correct Answer (+ +) , (+ =) , (- =)
True/False
Question A thread can be blocked when waiting for a resource.
Correct Answer True
True/False
Question Each class in java can have a finalizer method.
Correct Answer True
Multiple Choice Single Answer
Question Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer Break
True/False
Question As abstract class must have at least one abstract method and others may be
concrete or abstract.
Correct Answer True
Multiple Choice Single Answer
Question The argument to which specifies the delayperiod in milliseconds
Correct Answer sleep( )
Select The Blank
Question When java program starts up, one thread begin runing and it is called
________thread.
Correct Answer main( )
Multiple Choice Single Answer
Question class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0;
z = i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is
output of the above program?
Correct Answer The value assigned is 20
True/False
Question When for loop start the execution, the initialization portion of the loop is executed.
Correct Answer True
Select The Blank
Question ________ variables are declared by use of the Byte Keyword.
Correct Answer Byte
Multiple Choice Single Answer
Question Which cast must be used to cast an object to another class?
Correct Answer Specific cast.
Multiple Choice Multiple Answer
Question Which are keywords in Java?
Correct Answer Extends , Synchronized , Sizeof
Multiple Choice Multiple Answer
Question What are different data types in java?
Correct Answer char , double , byte
Match The Following
Question- Correct Answer
The Operators used in mathematical expressions Arithmetic Operator (= operator;)
Order in which operators are evaluated in expressions. Order of precedence Order of precedence
Whether an expression is evaluated left-to-right or right-to-left. Associativity Associativity
Java operator syntax for right associativity (= operator;) Comparison Operator
Multiple Choice Single Answer
Question Java uses which system to store packages?
Correct Answer File system directories
True/False
Question Constructors can be overloaded like regular methods.
Correct Answer True
Multiple Choice Multiple Answer
Question What are different modifiers?
Correct Answer Private , Protected , Final
Select The Blank
Question After the new thread is created, it will not start running until you call its
________method.
Correct Answer start( )
Select The Blank
Question The ________ repeats a set of code at least once before the condition is tested.
Correct Answer Do-while loop
Select The Blank
Question ________ loop repeats a statement or block while its controlling expressions is true.
Correct Answer While
Match The Following
Question -Correct Answer
The data, or variable, defined within a class- Instance variable.
General form of Cast -(target--type)value
Determine the relationship that one operand has to the other -Relational Operator
The secondary versions of the Boolean AND and OR operators Short-Circuit Logical Operators
Short-Circuit Logical Operators
Multiple Choice Multiple Answer
Question The Bitwise Logical Operators are :-
Correct Answer ^ , ^= , <<
Select The Blank
Question The name of the new thread is specified by ________.
Correct Answer threadName
Select The Blank
Question ________ is probably the least used java data type
Correct Answer short
Multiple Choice Single Answer
Question How to change the values of the elements of the array?
Correct Answer By using array subscript expression
Multiple Choice Single Answer
Question What is declared within the file that will belong to the specified pacakage?
Correct Answer classes
Multiple Choice Single Answer
Question How many concrete classes can you have inside an interface?
Correct Answer none
True/False
Question A thread's priority is used to decide when to switch from one running thread to the
next, this is called as the context switch.
Correct Answer True
Select The Blank
Question A class is ________ for an objects in java.
Correct Answer Template
Select The Blank
Question Anonymous classes be implemented in an ________.
Correct Answer Interface
True/False
Question When an object is referenced, it mean that it has been identified by the finalizer
method for garbage collection.
Correct Answer False
Multiple Choice Multiple Answer
Question Features of Java applets are :-
Correct Answer They can be transmitted over internet , Require java enabled web browser
Multiple Choice Multiple Answer
Question Classes usually consist of two things such as :-
Correct Answer Instance variable , Methods
Multiple Choice Multiple Answer
Question Main thread is important for which two reasons?
Correct Answer It is thread from which other "child" thread will be swapped , Often it must be
the last thread to finish execution because It performs various shutdown actions
True/False
Question If the break statement is omited in switch statement, then execution will continue on
into the next case.
Correct Answer True
Multiple Choice Multiple Answer
Question Which are the two threads of java?
Correct Answer mainthread( ) , childthread( )
Select The Blank
Question The ________ repeat a set of code while the condition is false.
Correct Answer While loop
Multiple Choice Multiple Answer
Question Which of these lines of code will compile?
Correct Answer short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question What are means of encapsulating and containing the name space and scope of
variables and methods?
Correct Answer Classes , Packages , Subclasses
Multiple Choice Single Answer
Question How is it possible to use few methods of an interface in a class?
Correct Answer By declaring the class as abstract
Multiple Choice Single Answer
Question Which statement will always execute the body of a loop at least once?
Correct Answer Do
Java Programming - 22
Java Programming - 22
True/False
Question Nested if is less efficient then switch statement.
Correct Answer True
Select The Blank
Question ________ are stored in hierarchical manner.
Correct Answer Packages
Select The Blank
Question The mechanism by which java frees the memory occupied by
unused objects is ________.
Correct Answer Garbage Collection
Multiple Choice Single Answer
Question When you implement an interface method, it must be declared as :-
Correct Answer Public
Multiple Choice Single Answer
Question What are primitive data types?
Correct Answer byte, short, int, long
True/False
Question In While loop condition can be any Boolean expression
Correct Answer True
Select The Blank
Question Long makes it useful when big ________ numbers are needed.
Correct Answer Whole
Multiple Choice Single Answer
Question Which Control Statement allow the program to execute in a
non-linear fashion?
Correct Answer Jump
True/False
Question With java Type Casts are checked at both compile-time and
runtime.
Correct Answer True
Multiple Choice Multiple Answer
Question Which of the following assignments are valid?
Correct Answer short s = 28; , double d = 2.3; , int I = '1';
Multiple Choice Multiple Answer
Question Java defines two ways when instantiating an object, such as :-
Correct Answer Can implement the runnable interface , Can extend the thread
class
Select The Blank
Question The explicit drop of an object reference by setting the value of a
variable, whose data type is a reference type of ________.
Correct Answer Null
Multiple Choice Single Answer
Question What is a string?
Correct Answer A combination of characters called as string
Multiple Choice Multiple Answer
Question What are the programming constructs?
Correct Answer Sequential , Selection -- if and switch statements , Iteration -- for
loop, while loop and do-while loop
Multiple Choice Single Answer
Question What can be created by instantiating an object type thread?
Correct Answer Thread
Select The Blank
Question In ________ statement the value of the expression is compared
with each of the literal values in case statements.
Correct Answer Switch
Multiple Choice Single Answer
Question How to declare an interface example?
Correct Answer access class classname implements interface.
True/False
Question Integer can Cast to byte value.
Correct Answer False
True/False
Question Transient variable is variable that may not be serialized.
Correct Answer True
Multiple Choice Single Answer
Question Using which keyword we can fully abstract a class?
Correct Answer interface
Select The Blank
Question The ________ loop repeats a set of statements a certain number
of times until a condition is matched.
Correct Answer For
Select The Blank
Question There are ________ kinds of Floating point type
Correct Answer Two
True/False
Question By default, all program import the java.lang package.
Correct Answer True
Multiple Choice Multiple Answer
Question What returns a reference to the thread in which it is called?
Correct Answer Method , Class , Object
True/False
Question Do while loop always executes its body at least once, because its
conditional expression is at the bottom of the loop.
Correct Answer True
Multiple Choice Multiple Answer
Question Which statements can be used with the java's loop?
Correct Answer Jump , Continue , Break
Match The Following
Question -Correct Answer
start( ) thread child thread
main thread child thread main
NewThread this new
sleep( ) milliseconds milliseconds
Select The Blank
Question ________ are containers for classes.
Correct Answer Packages
Multiple Choice Multiple Answer
Question Java's multithreading system is built upon :-
Correct Answer Thread class , Its methods , Companion interface
Select The Blank
Question The default encoding of objects supports the ________ of the
classes.
Correct Answer Evolution
Multiple Choice Multiple Answer
Question Which are the keywords use in switch statement?
Correct Answer Case , Default
Multiple Choice Single Answer
Question A Java application can execute anywhere on the network, this
implements that Java is :-
Correct Answer Architecture neutral
True/False
Question Boolean values can be cast into any other primitive type.
Correct Answer False
Match The Following
Question -Correct Answer
It can have only one of two possible values -Boolean type
Float hightemp, lowtemp- Float variable declarations
Smallest int type -Byte
Floating point numbers are also known as- Real Numbers
Multiple Choice Multiple Answer
Question Which one does not extend java.lang.Number?
Correct Answer Boolean , Character
Select The Blank
Question The smallest integer type is ________.
Correct Answer Byte
Multiple Choice Multiple Answer
Question Which is a public static member of thread?
Correct Answer currenthread( ) , mainthread( )
True/False
Question Casting does not affect the original object or value.
Correct Answer True
Select The Blank
Question Anything declared ________ can be accessed from anywhere
within program.
Correct Answer Public
Multiple Choice Single Answer
Question Which method is used to determine the class of an object?
Correct Answer getClass( ) method
Multiple Choice Multiple Answer
Question Method definition has four parts, they are :-
Correct Answer Name of the method , Type of object , List of parameters
True/False
Question Object oriented programming organizes a program around
processes acting on data.
Correct Answer False
Multiple Choice Single Answer
Question What are the possible access modifiers while implementing
interface methods?
Correct Answer public
Multiple Choice Single Answer
Question Which statement defines a name space in which classes are
stored?
Correct Answer package
Multiple Choice Single Answer
Question Which statement is used to explicitly return from a method?
Correct Answer Return
Multiple Choice Multiple Answer
Question There are two distinct types of multitasking. Which are those?
Correct Answer Process based , Thread-base
Multiple Choice Multiple Answer
Question Exit statement is optional in which loops in java?
Correct Answer While , Do-while , For
Java Programming - 21
Multiple Choice Single Answer
Question Java's which system allows a thread to enter a synhcronized
method on an object, and then wait there until some other thread
explicitly notifies it to come out :-
Correct Answer Messaging
Multiple Choice Multiple Answer
Question Packages act as containers for :-
Correct Answer Classes , Subordinate packages
True/False
Question Threads priorities are not integers that specify the relative priority
of one thread to another.
Correct Answer False
Multiple Choice Single Answer
Question When java program starts up, which thread begins running
immediately?
Correct Answer Main thread
Multiple Choice Single Answer
Question Java provides built-in support for which programming?
Correct Answer Multithreaded
Select The Blank
Question The ________ is similar to break, except that instead of halting
the execution of the loop, it starts the next iteration.
Correct Answer Continue
Multiple Choice Single Answer
Question When can a constructor be called without specifying arguments?
Correct Answer When there are no constructors for the class
Match The Following
Question -Correct Answer
Memory deallocation -Garbage Collection
This -Current Object
Constructor -Initialization object
Parameters -Method Generalized
Select The Blank
Question The mechanism which binds together the code and data and
keeps both safe is ________.
Correct Answer Encapsulation
Select The Blank
Question ________ is an instance of a class that implements the runnable
interface.
Correct Answer threadOb
Multiple Choice Multiple Answer
Question Expression must be of the data types :-
Correct Answer Byte , Short , Int
True/False
Question Java define eight simple types of data byte, short, int, long, char,
float, double, boolean.
Correct Answer True
Multiple Choice Multiple Answer
Question What modifiers may be used with top-level class?
Correct Answer Public , Abstract , Final
Multiple Choice Single Answer
Question Syntax to declare a variable in java is :-
Correct Answer type identifier [=value][,identifier[=value]…]
Select The Blank
Question ________ statement in java is conditional branch statement.
Correct Answer If
Multiple Choice Single Answer
Question Which statement used inside a set of nested loops, will only break
out of the innermost loop?
Correct Answer Break
Select The Blank
Question In ________ statement condition is true, then statement 1 is
executed.
Correct Answer If
Multiple Choice Multiple Answer
Question The source for the frist package defines three classes
Correct Answer Protection , Derived , SamePackage
True/False
Question Java compiler stores the .class files in the path specified in
CLASSPATH environmental variable.
Correct Answer False
True/False
Question Interface can be extended.
Correct Answer True
Select The Blank
Question ________ is the logical construct upon which the entire java
language is built.
Correct Answer Class
True/False
Question Is it necessary to implement all the methods of an interface while
implementing the interface
Correct Answer False
Multiple Choice Multiple Answer
Question Which loops can be nested in java?
Correct Answer While , Do-while , For
True/False
Question Float data type is useful when we need fractional values.
Correct Answer True
Your Answer True
Multiple Choice Multiple Answer
Question What all the run( ) method can do?
Correct Answer Can call other method , Declare variable
True/False
Question Variable in an interface are implicitly final and static.
Correct Answer True
Multiple Choice Single Answer
Question Which of the following operators are used in conjunction with the
this and super references?
Correct Answer The dot operator
Select The Blank
Question The ________ keyword halts the execution of the current loop
and forces control out of the loop.
Correct Answer Break
Multiple Choice Single Answer
Question What is a data structure that controls the state of a collection of
threads as a whole?
Correct Answer Thread group
Multiple Choice Multiple Answer
Question By Providing the interface keyword, Java allows you to fully utilize
the which aspect of polymorphism?
Correct Answer One interface , Multiple methods
Select The Blank
Question For externalizable objects the ________ is solely responsible for
the external format of its contents.
Correct Answer Class
Multiple Choice Multiple Answer
Question Which are the java's control statements?
Correct Answer For , If , Switch
Multiple Choice Single Answer
Question What are the kinds of variables in Java?
Correct Answer Instance, local, class variables
Multiple Choice Multiple Answer
Question Java Operators can be divided into these groups :-
Correct Answer Arithmetic , Bitwise , Relational
Match The Following Answer
Interface- Abtract method
Pacakge declaration -Package pkg
Java.applet.Applet Class Applet Class Applet
Java.applet Java.applet package Java.applet package
Multiple Choice Single Answer
Question What is an array?
Correct Answer It is value collection of same type of data type
Multiple Choice Multiple Answer
Question Modulus operator % can be applied to these data types :-
Correct Answer floating Point , Integer , Character
Select The Blank
Question Start( )executes a call to ________.
Correct Answer run( )
Select The Blank
Question ________ is an instance of the class.
Correct Answer Object
Select The Blank
Question ________method starts a threrad by calling its run method.
Correct Answer start( )
Multiple Choice Single Answer
Question Which Control Statements allow the program to choose different
paths of execution?
Correct Answer Selection
Multiple Choice Single Answer
Question Which Control Statements enable program execution to repeat
one or more statements?
Correct Answer Iteration
True/False
Question The switch statement does not require a break.
Correct Answer False
True/False
Question In Interface we need not use the keyword abstract for the
methods.
Correct Answer True
Multiple Choice Multiple Answer
Question What are the Logical operators?
Correct Answer OR() , AND(&) , XOR(^)
True/False
Question Byte can be Cast to Double Value.
Correct Answer True
Multiple Choice Multiple Answer
Question Which thread is created automatically when the program is
started?
Correct Answer Main thread
Java Programming - 20
True/False
Question Casting occurs commonly between numeric types
Correct Answer True
Multiple Choice Multiple Answer
Question When might your program wish to run the garbage collector?
Correct Answer Before it enters a compute-intense section of code , Before it enters a
memory-intense section of code , When it knows there will be some idle time
Multiple Choice Single Answer
Question What are members of the threads class?
Correct Answer Method
True/False
Question Boolean data type have only Yes or No value.
Correct Answer True
Select The Blank
Question The ________ loop is java's most fundamental looping statement.
Correct Answer While
Multiple Choice Single Answer
Question In multithreaded program each part of such program is called :-
Correct Answer Thread
Multiple Choice Multiple Answer
Question Which of the following are mathematical Expressions?
Correct Answer (+ +) , (+ =) , (- =)
True/False
Question A thread can be blocked when waiting for a resource.
Correct Answer True
True/False
Question Each class in java can have a finalizer method.
Correct Answer True
Multiple Choice Single Answer
Question Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer Break
True/False
Question As abstract class must have at least one abstract method and others may be concrete or abstract.
Correct Answer True
Multiple Choice Single Answer
Question The argument to which specifies the delayperiod in milliseconds
Correct Answer sleep( )
Select The Blank
Question When java program starts up, one thread begin runing and it is called ________thread.
Correct Answer main( )
Multiple Choice Single Answer
Question class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0; z
= i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is output
of the above program?
Correct Answer The value assigned is 20
True/False
Question When for loop start the execution, the initialization portion of the loop is executed.
Correct Answer True
Select The Blank
Question ________ variables are declared by use of the Byte Keyword.
Correct Answer Byte
Multiple Choice Single Answer
Question Which cast must be used to cast an object to another class?
Correct Answer Specific cast.
Multiple Choice Multiple Answer
Question Which are keywords in Java?
Correct Answer Extends , Synchronized , Sizeof
Multiple Choice Multiple Answer
Question What are different data types in java?
Correct Answer char , double , byte
Match The Following
Question -Correct Answer
The Operators used in mathematical expressions Arithmetic Operator (= operator;)
Order in which operators are evaluated in expressions. -Order of precedence
Whether an expression is evaluated left-to-right or right-to-left. -Associativity
Java operator syntax for right -associativity (= operator;)
Multiple Choice Single Answer
Question Java uses which system to store packages?
Correct Answer File system directories
True/False
Question Constructors can be overloaded like regular methods.
Correct Answer True
Multiple Choice Multiple Answer
Question What are different modifiers?
Correct Answer Private , Protected , Final
Select The Blank
Question After the new thread is created, it will not start running until you call its
________method.
Correct Answer start( )
Select The Blank
Question The ________ repeats a set of code at least once before the condition is tested.
Correct Answer Do-while loop
Select The Blank
Question ________ loop repeats a statement or block while its controlling expressions is true.
Correct Answer While
Match The Following
Question -Correct Answer
The data, or variable, defined within a class- Instance variable.
General form of Cast- (target--type)value
Determine the relationship that one operand has to the other- Relational Operator
The secondary versions of the Boolean AND and OR operators -Short-Circuit Logical Operators
Multiple Choice Multiple Answer
Question The Bitwise Logical Operators are :-
Correct Answer ^ , ^= , <<
Select The Blank
Question The name of the new thread is specified by ________.
Correct Answer threadName
Select The Blank
Question ________ is probably the least used java data type
Correct Answer short
Multiple Choice Single Answer
Question How to change the values of the elements of the array?
Correct Answer By using array subscript expression
Multiple Choice Single Answer
Question What is declared within the file that will belong to the specified pacakage?
Correct Answer classes
Multiple Choice Single Answer
Question How many concrete classes can you have inside an interface?
Correct Answer none
True/False
Question A thread's priority is used to decide when to switch from one running thread to the next,
this is called as the context switch.
Correct Answer True
Select The Blank
Question A class is ________ for an objects in java.
Correct Answer Template
Select The Blank
Question Anonymous classes be implemented in an ________.
Correct Answer Interface
True/False
Question When an object is referenced, it mean that it has been identified by the finalizer method
for garbage collection.
Correct Answer False
Multiple Choice Multiple Answer
Question Features of Java applets are :-
Correct Answer They can be transmitted over internet , Require java enabled web browser
Multiple Choice Multiple Answer
Question Classes usually consist of two things such as :-
Correct Answer Instance variable , Methods
Multiple Choice Multiple Answer
Question Main thread is important for which two reasons?
Correct Answer It is thread from which other "child" thread will be swapped , Often it must be the
last thread to finish execution because It performs various shutdown actions
True/False
Question If the break statement is omited in switch statement, then execution will continue on
into the next case.
Correct Answer True
Multiple Choice Multiple Answer
Question Which are the two threads of java?
Correct Answer mainthread( ) , childthread( )
Select The Blank
Question The ________ repeat a set of code while the condition is false.
Correct Answer While loop
Multiple Choice Multiple Answer
Question Which of these lines of code will compile?
Correct Answer short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question What are means of encapsulating and containing the name space and scope of
variables and methods?
Correct Answer Classes , Packages , Subclasses
Multiple Choice Single Answer
Question How is it possible to use few methods of an interface in a class?
Correct Answer By declaring the class as abstract
Multiple Choice Single Answer
Question Which statement will always execute the body of a loop at least once?
Correct Answer Do
True/False
Question Nested if is less efficient then switch statement.
Correct Answer True
Select The Blank
Question ________ are stored in hierarchical manner.
Correct Answer Packages
Select The Blank
Question The mechanism by which java frees the memory occupied by
unused objects is ________.
Correct Answer Garbage Collection
Multiple Choice Single Answer
Question When you implement an interface method, it must be declared as :-
Correct Answer Public
Multiple Choice Single Answer
Question What are primitive data types?
Correct Answer byte, short, int, long
True/False
Question In While loop condition can be any Boolean expression
Correct Answer True
Select The Blank
Question Long makes it useful when big ________ numbers are needed.
Correct Answer Whole
Multiple Choice Single Answer
Question Which Control Statement allow the program to execute in a
non-linear fashion?
Correct Answer Jump
True/False
Question With java Type Casts are checked at both compile-time and
runtime.
Correct Answer True
Multiple Choice Multiple Answer
Question Which of the following assignments are valid?
Correct Answer short s = 28; , double d = 2.3; , int I = '1';
Multiple Choice Multiple Answer
Question Java defines two ways when instantiating an object, such as :-
Correct Answer Can implement the runnable interface , Can extend the thread
class
Select The Blank
Question The explicit drop of an object reference by setting the value of a
variable, whose data type is a reference type of ________.
Correct Answer Null
Multiple Choice Single Answer
Question What is a string?
Correct Answer A combination of characters called as string
Multiple Choice Multiple Answer
Question What are the programming constructs?
Correct Answer Sequential , Selection -- if and switch statements , Iteration -- for
loop, while loop and do-while loop
Multiple Choice Single Answer
Question What can be created by instantiating an object type thread?
Correct Answer Thread
Select The Blank
Question In ________ statement the value of the expression is compared
with each of the literal values in case statements.
Correct Answer Switch
Multiple Choice Single Answer
Question How to declare an interface example?
Correct Answer access class classname implements interface.
True/False
Question Integer can Cast to byte value.
Correct Answer False
True/False
Question Transient variable is variable that may not be serialized.
Correct Answer True
Multiple Choice Single Answer
Question Using which keyword we can fully abstract a class?
Correct Answer interface
Select The Blank
Question The ________ loop repeats a set of statements a certain number
of times until a condition is matched.
Correct Answer For
Select The Blank
Question There are ________ kinds of Floating point type
Correct Answer Two
True/False
Question By default, all program import the java.lang package.
Correct Answer True
Multiple Choice Multiple Answer
Question What returns a reference to the thread in which it is called?
Correct Answer Method , Class , Object
True/False
Question Do while loop always executes its body at least once, because its
conditional expression is at the bottom of the loop.
Correct Answer True
Multiple Choice Multiple Answer
Question Which statements can be used with the java's loop?
Correct Answer Jump , Continue , Break
Match The Following
Question -Correct Answer
start( ) thread child thread
main thread child thread main
NewThread this new
sleep( ) milliseconds milliseconds
Select The Blank
Question ________ are containers for classes.
Correct Answer Packages
Multiple Choice Multiple Answer
Question Java's multithreading system is built upon :-
Correct Answer Thread class , Its methods , Companion interface
Select The Blank
Question The default encoding of objects supports the ________ of the
classes.
Correct Answer Evolution
Multiple Choice Multiple Answer
Question Which are the keywords use in switch statement?
Correct Answer Case , Default
Multiple Choice Single Answer
Question A Java application can execute anywhere on the network, this
implements that Java is :-
Correct Answer Architecture neutral
True/False
Question Boolean values can be cast into any other primitive type.
Correct Answer False
Match The Following
Question -Correct Answer
It can have only one of two possible values -Boolean type
Float hightemp, lowtemp- Float variable declarations
Smallest int type -Byte
Floating point numbers are also known as- Real Numbers
Multiple Choice Multiple Answer
Question Which one does not extend java.lang.Number?
Correct Answer Boolean , Character
Select The Blank
Question The smallest integer type is ________.
Correct Answer Byte
Multiple Choice Multiple Answer
Question Which is a public static member of thread?
Correct Answer currenthread( ) , mainthread( )
True/False
Question Casting does not affect the original object or value.
Correct Answer True
Select The Blank
Question Anything declared ________ can be accessed from anywhere
within program.
Correct Answer Public
Multiple Choice Single Answer
Question Which method is used to determine the class of an object?
Correct Answer getClass( ) method
Multiple Choice Multiple Answer
Question Method definition has four parts, they are :-
Correct Answer Name of the method , Type of object , List of parameters
True/False
Question Object oriented programming organizes a program around
processes acting on data.
Correct Answer False
Multiple Choice Single Answer
Question What are the possible access modifiers while implementing
interface methods?
Correct Answer public
Multiple Choice Single Answer
Question Which statement defines a name space in which classes are
stored?
Correct Answer package
Multiple Choice Single Answer
Question Which statement is used to explicitly return from a method?
Correct Answer Return
Multiple Choice Multiple Answer
Question There are two distinct types of multitasking. Which are those?
Correct Answer Process based , Thread-base
Multiple Choice Multiple Answer
Question Exit statement is optional in which loops in java?
Correct Answer While , Do-while , For
Java Programming - 21
Multiple Choice Single Answer
Question Java's which system allows a thread to enter a synhcronized
method on an object, and then wait there until some other thread
explicitly notifies it to come out :-
Correct Answer Messaging
Multiple Choice Multiple Answer
Question Packages act as containers for :-
Correct Answer Classes , Subordinate packages
True/False
Question Threads priorities are not integers that specify the relative priority
of one thread to another.
Correct Answer False
Multiple Choice Single Answer
Question When java program starts up, which thread begins running
immediately?
Correct Answer Main thread
Multiple Choice Single Answer
Question Java provides built-in support for which programming?
Correct Answer Multithreaded
Select The Blank
Question The ________ is similar to break, except that instead of halting
the execution of the loop, it starts the next iteration.
Correct Answer Continue
Multiple Choice Single Answer
Question When can a constructor be called without specifying arguments?
Correct Answer When there are no constructors for the class
Match The Following
Question -Correct Answer
Memory deallocation -Garbage Collection
This -Current Object
Constructor -Initialization object
Parameters -Method Generalized
Select The Blank
Question The mechanism which binds together the code and data and
keeps both safe is ________.
Correct Answer Encapsulation
Select The Blank
Question ________ is an instance of a class that implements the runnable
interface.
Correct Answer threadOb
Multiple Choice Multiple Answer
Question Expression must be of the data types :-
Correct Answer Byte , Short , Int
True/False
Question Java define eight simple types of data byte, short, int, long, char,
float, double, boolean.
Correct Answer True
Multiple Choice Multiple Answer
Question What modifiers may be used with top-level class?
Correct Answer Public , Abstract , Final
Multiple Choice Single Answer
Question Syntax to declare a variable in java is :-
Correct Answer type identifier [=value][,identifier[=value]…]
Select The Blank
Question ________ statement in java is conditional branch statement.
Correct Answer If
Multiple Choice Single Answer
Question Which statement used inside a set of nested loops, will only break
out of the innermost loop?
Correct Answer Break
Select The Blank
Question In ________ statement condition is true, then statement 1 is
executed.
Correct Answer If
Multiple Choice Multiple Answer
Question The source for the frist package defines three classes
Correct Answer Protection , Derived , SamePackage
True/False
Question Java compiler stores the .class files in the path specified in
CLASSPATH environmental variable.
Correct Answer False
True/False
Question Interface can be extended.
Correct Answer True
Select The Blank
Question ________ is the logical construct upon which the entire java
language is built.
Correct Answer Class
True/False
Question Is it necessary to implement all the methods of an interface while
implementing the interface
Correct Answer False
Multiple Choice Multiple Answer
Question Which loops can be nested in java?
Correct Answer While , Do-while , For
True/False
Question Float data type is useful when we need fractional values.
Correct Answer True
Your Answer True
Multiple Choice Multiple Answer
Question What all the run( ) method can do?
Correct Answer Can call other method , Declare variable
True/False
Question Variable in an interface are implicitly final and static.
Correct Answer True
Multiple Choice Single Answer
Question Which of the following operators are used in conjunction with the
this and super references?
Correct Answer The dot operator
Select The Blank
Question The ________ keyword halts the execution of the current loop
and forces control out of the loop.
Correct Answer Break
Multiple Choice Single Answer
Question What is a data structure that controls the state of a collection of
threads as a whole?
Correct Answer Thread group
Multiple Choice Multiple Answer
Question By Providing the interface keyword, Java allows you to fully utilize
the which aspect of polymorphism?
Correct Answer One interface , Multiple methods
Select The Blank
Question For externalizable objects the ________ is solely responsible for
the external format of its contents.
Correct Answer Class
Multiple Choice Multiple Answer
Question Which are the java's control statements?
Correct Answer For , If , Switch
Multiple Choice Single Answer
Question What are the kinds of variables in Java?
Correct Answer Instance, local, class variables
Multiple Choice Multiple Answer
Question Java Operators can be divided into these groups :-
Correct Answer Arithmetic , Bitwise , Relational
Match The Following Answer
Interface- Abtract method
Pacakge declaration -Package pkg
Java.applet.Applet Class Applet Class Applet
Java.applet Java.applet package Java.applet package
Multiple Choice Single Answer
Question What is an array?
Correct Answer It is value collection of same type of data type
Multiple Choice Multiple Answer
Question Modulus operator % can be applied to these data types :-
Correct Answer floating Point , Integer , Character
Select The Blank
Question Start( )executes a call to ________.
Correct Answer run( )
Select The Blank
Question ________ is an instance of the class.
Correct Answer Object
Select The Blank
Question ________method starts a threrad by calling its run method.
Correct Answer start( )
Multiple Choice Single Answer
Question Which Control Statements allow the program to choose different
paths of execution?
Correct Answer Selection
Multiple Choice Single Answer
Question Which Control Statements enable program execution to repeat
one or more statements?
Correct Answer Iteration
True/False
Question The switch statement does not require a break.
Correct Answer False
True/False
Question In Interface we need not use the keyword abstract for the
methods.
Correct Answer True
Multiple Choice Multiple Answer
Question What are the Logical operators?
Correct Answer OR() , AND(&) , XOR(^)
True/False
Question Byte can be Cast to Double Value.
Correct Answer True
Multiple Choice Multiple Answer
Question Which thread is created automatically when the program is
started?
Correct Answer Main thread
Java Programming - 20
True/False
Question Casting occurs commonly between numeric types
Correct Answer True
Multiple Choice Multiple Answer
Question When might your program wish to run the garbage collector?
Correct Answer Before it enters a compute-intense section of code , Before it enters a
memory-intense section of code , When it knows there will be some idle time
Multiple Choice Single Answer
Question What are members of the threads class?
Correct Answer Method
True/False
Question Boolean data type have only Yes or No value.
Correct Answer True
Select The Blank
Question The ________ loop is java's most fundamental looping statement.
Correct Answer While
Multiple Choice Single Answer
Question In multithreaded program each part of such program is called :-
Correct Answer Thread
Multiple Choice Multiple Answer
Question Which of the following are mathematical Expressions?
Correct Answer (+ +) , (+ =) , (- =)
True/False
Question A thread can be blocked when waiting for a resource.
Correct Answer True
True/False
Question Each class in java can have a finalizer method.
Correct Answer True
Multiple Choice Single Answer
Question Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer Break
True/False
Question As abstract class must have at least one abstract method and others may be concrete or abstract.
Correct Answer True
Multiple Choice Single Answer
Question The argument to which specifies the delayperiod in milliseconds
Correct Answer sleep( )
Select The Blank
Question When java program starts up, one thread begin runing and it is called ________thread.
Correct Answer main( )
Multiple Choice Single Answer
Question class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0; z
= i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is output
of the above program?
Correct Answer The value assigned is 20
True/False
Question When for loop start the execution, the initialization portion of the loop is executed.
Correct Answer True
Select The Blank
Question ________ variables are declared by use of the Byte Keyword.
Correct Answer Byte
Multiple Choice Single Answer
Question Which cast must be used to cast an object to another class?
Correct Answer Specific cast.
Multiple Choice Multiple Answer
Question Which are keywords in Java?
Correct Answer Extends , Synchronized , Sizeof
Multiple Choice Multiple Answer
Question What are different data types in java?
Correct Answer char , double , byte
Match The Following
Question -Correct Answer
The Operators used in mathematical expressions Arithmetic Operator (= operator;)
Order in which operators are evaluated in expressions. -Order of precedence
Whether an expression is evaluated left-to-right or right-to-left. -Associativity
Java operator syntax for right -associativity (= operator;)
Multiple Choice Single Answer
Question Java uses which system to store packages?
Correct Answer File system directories
True/False
Question Constructors can be overloaded like regular methods.
Correct Answer True
Multiple Choice Multiple Answer
Question What are different modifiers?
Correct Answer Private , Protected , Final
Select The Blank
Question After the new thread is created, it will not start running until you call its
________method.
Correct Answer start( )
Select The Blank
Question The ________ repeats a set of code at least once before the condition is tested.
Correct Answer Do-while loop
Select The Blank
Question ________ loop repeats a statement or block while its controlling expressions is true.
Correct Answer While
Match The Following
Question -Correct Answer
The data, or variable, defined within a class- Instance variable.
General form of Cast- (target--type)value
Determine the relationship that one operand has to the other- Relational Operator
The secondary versions of the Boolean AND and OR operators -Short-Circuit Logical Operators
Multiple Choice Multiple Answer
Question The Bitwise Logical Operators are :-
Correct Answer ^ , ^= , <<
Select The Blank
Question The name of the new thread is specified by ________.
Correct Answer threadName
Select The Blank
Question ________ is probably the least used java data type
Correct Answer short
Multiple Choice Single Answer
Question How to change the values of the elements of the array?
Correct Answer By using array subscript expression
Multiple Choice Single Answer
Question What is declared within the file that will belong to the specified pacakage?
Correct Answer classes
Multiple Choice Single Answer
Question How many concrete classes can you have inside an interface?
Correct Answer none
True/False
Question A thread's priority is used to decide when to switch from one running thread to the next,
this is called as the context switch.
Correct Answer True
Select The Blank
Question A class is ________ for an objects in java.
Correct Answer Template
Select The Blank
Question Anonymous classes be implemented in an ________.
Correct Answer Interface
True/False
Question When an object is referenced, it mean that it has been identified by the finalizer method
for garbage collection.
Correct Answer False
Multiple Choice Multiple Answer
Question Features of Java applets are :-
Correct Answer They can be transmitted over internet , Require java enabled web browser
Multiple Choice Multiple Answer
Question Classes usually consist of two things such as :-
Correct Answer Instance variable , Methods
Multiple Choice Multiple Answer
Question Main thread is important for which two reasons?
Correct Answer It is thread from which other "child" thread will be swapped , Often it must be the
last thread to finish execution because It performs various shutdown actions
True/False
Question If the break statement is omited in switch statement, then execution will continue on
into the next case.
Correct Answer True
Multiple Choice Multiple Answer
Question Which are the two threads of java?
Correct Answer mainthread( ) , childthread( )
Select The Blank
Question The ________ repeat a set of code while the condition is false.
Correct Answer While loop
Multiple Choice Multiple Answer
Question Which of these lines of code will compile?
Correct Answer short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question What are means of encapsulating and containing the name space and scope of
variables and methods?
Correct Answer Classes , Packages , Subclasses
Multiple Choice Single Answer
Question How is it possible to use few methods of an interface in a class?
Correct Answer By declaring the class as abstract
Multiple Choice Single Answer
Question Which statement will always execute the body of a loop at least once?
Correct Answer Do
Java Programming - 19
Java Programming - 19
True/False
Question: Casting occurs commonly between numeric types
Correct Answer: True
Multiple Choice Multiple Answer
Question: When might your program wish to run the garbage collector?
Correct Answer: Before it enters a compute-intense section of code , Before it enters a memory-intense section of code , When it knows there will be some idle time
Multiple Choice Single Answer
Question: What are members of the threads class?
Correct Answer: Method
True/False
Question: Boolean data type have only Yes or No value.
Correct Answer: True
Select The Blank
Question: The ________ loop is java's most fundamental looping statement.
Correct Answer: While
Multiple Choice Single Answer
Question: In multithreaded program each part of such program is called :-
Correct Answer: Thread
Multiple Choice Multiple Answer
Question: Which of the following are mathematical Expressions?
Correct Answer: (+ +) , (+ =) , (- =)
True/False
Question: A thread can be blocked when waiting for a resource.
Correct Answer: True
True/False
Question: Each class in java can have a finalizer method.
Correct Answer: True
Multiple Choice Single Answer
Question: Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer: Break
True/False
Question: As abstract class must have at least one abstract method and others may be concrete or abstract.
Correct Answer: True
Multiple Choice Single Answer
Question: The argument to which specifies the delayperiod in milliseconds
Correct Answer: sleep( )
Select The Blank
Question: When java program starts up, one thread begin runing and it is called ________thread.
Correct Answer: main( )
Multiple Choice Single Answer
Question: class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0; z = i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is output of the above program?
Correct Answer: The value assigned is 20
True/False
Question: When for loop start the execution, the initialization portion of the loop is executed.
Correct Answer: True
Select The Blank
Question: ________ variables are declared by use of the Byte Keyword.
Correct Answer: Byte
Multiple Choice Single Answer
Question: Which cast must be used to cast an object to another class?
Correct Answer: Specific cast.
Multiple Choice Multiple Answer
Question: Which are keywords in Java?
Correct Answer: Extends , Synchronized , Sizeof
Multiple Choice Multiple Answer
Question: What are different data types in java?
Correct Answer: char , double , byte
Match The Following
Question -Correct Answer
The Operators used in mathematical Arithmetic Operator (= operator;)
expressions
Order in which operators are evaluated in -Order of precedence
Whether an expression is evaluated -Associativity
left-to-right or right-to-left.
Java operator syntax for right associativity (= operator;) Comparison Operator
Multiple Choice Single Answer
Question: Java uses which system to store packages?
Correct Answer: File system directories
True/False
Question: Constructors can be overloaded like regular methods.
Correct Answer: True
Multiple Choice Multiple Answer
Question: What are different modifiers?
Correct Answer: Private , Protected , Final
Select The Blank
Question: After the new thread is created, it will not start running until you call its ________method.
Correct Answer: start( )
Select The Blank
Question: The ________ repeats a set of code at least once before the condition is tested.
Correct Answer: Do-while loop
Select The Blank
Question: ________ loop repeats a statement or block while its controlling expressions is true.
Correct Answer: While
Match The Following
Question- Correct Answer
The data, or variable, defined within a class- Instance variable.
General form of Cast- (target--type)value
Determine the relationship that one operand -Relational Operator
The secondary versions of the Boolean AND Short-Circuit Logical Short-Circuit Logical and OR operators -Operators
Multiple Choice Multiple Answer
Question: The Bitwise Logical Operators are :-
Correct Answer: ^ , ^= , <<
Select The Blank
Question: The name of the new thread is specified by ________.
Correct Answer: threadName
Select The Blank
Question: ________ is probably the least used java data type
Correct Answer: short
Multiple Choice Single Answer
Question: How to change the values of the elements of the array?
Correct Answer: By using array subscript expression
Multiple Choice Single Answer
Question: What is declared within the file that will belong to the specified pacakage?
Correct Answer: classes
Multiple Choice Single Answer
Question: How many concrete classes can you have inside an interface?
Correct Answer: none
True/False
Question: A thread's priority is used to decide when to switch from one running thread to the next, this is called as the context switch.
Correct Answer: True
Select The Blank
Question: A class is ________ for an objects in java.
Correct Answer: Template
Select The Blank
Question: Anonymous classes be implemented in an ________.
Correct Answer: Interface
True/False
Question: When an object is referenced, it mean that it has been identified by the finalizer method for garbage collection.
Correct Answer: False
Multiple Choice Multiple Answer
Question: Features of Java applets are :-
Correct Answer: They can be transmitted over internet , Require java enabled web browser
Multiple Choice Multiple Answer
Question: Classes usually consist of two things such as :-
Correct Answer: Instance variable , Methods
Multiple Choice Multiple Answer
Question: Main thread is important for which two reasons?
Correct Answer: It is thread from which other "child" thread will be swapped , Often it must be the last thread to finish execution because It performs various shutdown actions
True/False
Question: If the break statement is omited in switch statement, then execution will continue on into the next case.
Correct Answer: True
Multiple Choice Multiple Answer
Question: Which are the two threads of java?
Correct Answer: mainthread( ) , childthread( )
Select The Blank
Question: The ________ repeat a set of code while the condition is false.
Correct Answer: While loop
Multiple Choice Multiple Answer
Question: Which of these lines of code will compile?
Correct Answer: short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question: What are means of encapsulating and containing the name space and scope of variables and methods?
Correct Answer: Classes , Packages , Subclasses
Multiple Choice Single Answer
Question: How is it possible to use few methods of an interface in a class?
Correct Answer: By declaring the class as abstract
Multiple Choice Single Answer
Question: Which statement will always execute the body of a loop at least once?
Correct Answer: Do
Java Programming - 18
True/False
Question: Casting occurs commonly between numeric types
Correct Answer: True
Multiple Choice Multiple Answer
Question: When might your program wish to run the garbage collector?
Correct Answer: Before it enters a compute-intense section of code , Before it enters a memory-intense section of code , When it knows there will be some idle time
Multiple Choice Single Answer
Question: What are members of the threads class?
Correct Answer: Method
True/False
Question: Boolean data type have only Yes or No value.
Correct Answer: True
Select The Blank
Question: The ________ loop is java's most fundamental looping statement.
Correct Answer: While
Multiple Choice Single Answer
Question: In multithreaded program each part of such program is called :-
Correct Answer: Thread
Multiple Choice Multiple Answer
Question: Which of the following are mathematical Expressions?
Correct Answer: (+ +) , (+ =) , (- =)
True/False
Question: A thread can be blocked when waiting for a resource.
Correct Answer: True
True/False
Question: Each class in java can have a finalizer method.
Correct Answer: True
Multiple Choice Single Answer
Question: Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer: Break
True/False
Question: As abstract class must have at least one abstract method and others may be concrete or abstract.
Correct Answer: True
Multiple Choice Single Answer
Question: The argument to which specifies the delayperiod in milliseconds
Correct Answer: sleep( )
Select The Blank
Question: When java program starts up, one thread begin runing and it is called ________thread.
Correct Answer: main( )
Multiple Choice Single Answer
Question: class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0; z = i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is output of the above program?
Correct Answer: The value assigned is 20
True/False
Question: When for loop start the execution, the initialization portion of the loop is executed.
Correct Answer: True
Select The Blank
Question: ________ variables are declared by use of the Byte Keyword.
Correct Answer: Byte
Multiple Choice Single Answer
Question: Which cast must be used to cast an object to another class?
Correct Answer: Specific cast.
Multiple Choice Multiple Answer
Question: Which are keywords in Java?
Correct Answer: Extends , Synchronized , Sizeof
Multiple Choice Multiple Answer
Question: What are different data types in java?
Correct Answer: char , double , byte
Match The Following
Question -Correct Answer
The Operators used in mathematical Arithmetic Operator (= operator;)
expressions
Order in which operators are- Order of precedence
Whether an expression is evaluated- Associativity
left-to-right or right-to-left
Java operator syntax for right (= operator;) Comparison Operator
associativity
Multiple Choice Single Answer
Question: Java uses which system to store packages?
Correct Answer: File system directories
True/False
Question: Constructors can be overloaded like regular methods.
Correct Answer: True
Multiple Choice Multiple Answer
Question: What are different modifiers?
Correct Answer: Private , Protected , Final
Select The Blank
Question: After the new thread is created, it will not start running until you call its ________method.
Correct Answer: start( )
Select The Blank
Question: The ________ repeats a set of code at least once before the condition is tested.
Correct Answer: Do-while loop
Select The Blank
Question: ________ loop repeats a statement or block while its controlling expressions is true.
Correct Answer: While
Match The Following
Question- Correct Answer
The data, or variable, defined -Instance variable.
within a class General form of Cast -(target--type)value
Determine the relationship that -Relational Operator
The secondary versions of the Short-Circuit Logical Operators Short-Circuit Logical Operators
Boolean AND and OR operators
Multiple Choice Multiple Answer
Question: The Bitwise Logical Operators are :-
Correct Answer: ^ , ^= , <<
Select The Blank
Question: The name of the new thread is specified by ________.
Correct Answer: threadName
Select The Blank
Question: ________ is probably the least used java data type
Correct Answer: short
Multiple Choice Single Answer
Question: How to change the values of the elements of the array?
Correct Answer: By using array subscript expression
Multiple Choice Single Answer
Question: What is declared within the file that will belong to the specified pacakage?
Correct Answer: classes
Multiple Choice Single Answer
Question: How many concrete classes can you have inside an interface?
Correct Answer: none
True/False
Question: A thread's priority is used to decide when to switch from one running thread to the next, this is called as the context switch.
Correct Answer: True
Select The Blank
Question: A class is ________ for an objects in java.
Correct Answer: Template
Select The Blank
Question: Anonymous classes be implemented in an ________.
Correct Answer: Interface
True/False
Question: When an object is referenced, it mean that it has been identified by the finalizer method for garbage collection.
Correct Answer: False
Multiple Choice Multiple Answer
Question: Features of Java applets are :-
Correct Answer: They can be transmitted over internet , Require java enabled web browser
Multiple Choice Multiple Answer
Question: Classes usually consist of two things such as :-
Correct Answer: Instance variable , Methods
Multiple Choice Multiple Answer
Question: Main thread is important for which two reasons?
Correct Answer: It is thread from which other "child" thread will be swapped , Often it must be the last thread to finish execution because It performs various shutdown actions
True/False
Question: If the break statement is omited in switch statement, then execution will continue on into the next case.
Correct Answer: True
Multiple Choice Multiple Answer
Question: Which are the two threads of java?
Correct Answer: mainthread( ) , childthread( )
Select The Blank
Question: The ________ repeat a set of code while the condition is false.
Correct Answer: While loop
Multiple Choice Multiple Answer
Question: Which of these lines of code will compile?
Correct Answer: short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question: What are means of encapsulating and containing the name space and scope of variables and methods?
Correct Answer: Classes , Packages , Subclasses
Multiple Choice Single Answer
Question: How is it possible to use few methods of an interface in a class?
Correct Answer: By declaring the class as abstract
Multiple Choice Single Answer
Question: Which statement will always execute the body of a loop at least once?
Correct Answer: Do
Java Programming - 17
True/False
Question: Object oriented programming organizes a program around processes acting on data.
Correct Answer: False
Select The Blank
Question: ________ are stored in hierarchical manner.
Correct Answer: Packages
Multiple Choice Single Answer
Question: Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer: Break
Multiple Choice Multiple Answer
Question: Which are the java's control statements?
Correct Answer: For , If , Switch
Multiple Choice Single Answer
Question: Which statement defines a name space in which classes are stored?
Correct Answer: package
Select The Blank
Question: Threads define several ________.
Correct Answer: constructors
Multiple Choice Multiple Answer
Question: What are different data types in java?
Correct Answer: char , double , byte
True/False
Question: There is no Global Variable in Java.
Correct Answer: True
Match The Following
Question -Correct Answer
Object- Instance of Class
Methods -Member of Class
Stack -First In, Last Out
Class Object -Oriented Programming
True/False
Question: Boolean values can be cast into any other primitive type.
Correct Answer: False
True/False
Question: Short data type range is -30,376 to 32768.
Correct Answer: False
Multiple Choice Single Answer
Question: How array is defined?
Correct Answer: int arr[];
Select The Blank
Question: In ________ statement condition is true, then statement 1 is executed.
Correct Answer: If
Multiple Choice Multiple Answer
Question: Features of Java applets are :-
Correct Answer: They can be transmitted over internet , Require java enabled web browser
True/False
Question: Boolean data type have only Yes or No value.
Correct Answer: True
Multiple Choice Single Answer
Question: class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0; z = i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is output of the above program?
Correct Answer: The value assigned is 20
Multiple Choice Multiple Answer
Question: Classes usually consist of two things such as :-
Correct Answer: Instance variable , Methods
Select The Blank
Question: The most commonly used ________eger type is int.
Correct Answer: int
Select The Blank
Question: The range of Byte is ________
Correct Answer: (-128 to 127)
True/False
Question: User-defined package can also be imported just like the standard packages.
Correct Answer: True
Multiple Choice Multiple Answer
Question: Java defines two ways when instantiating an object, such as :-
Correct Answer: Can implement the runnable interface , Can extend the thread class
Multiple Choice Single Answer
Question: Which method is used to determine the class of an object?
Correct Answer: getClass( ) method
Multiple Choice Single Answer
Question: If you do not implement all the methods of an interface while implementing, what specifier should you use for the class ?
Correct Answer: abtract
Multiple Choice Multiple Answer
Question: Main thread is important for which two reasons?
Correct Answer: It is thread from which other "child" thread will be swapped , Often it must be the last thread to finish execution because It performs various shutdown actions
Select The Blank
Question: The ________ repeat a set of code while the condition is false.
Correct Answer: While loop
Select The Blank
Question: A class can only inherit a single ________.
Correct Answer: Superclass
Multiple Choice Multiple Answer
Question: Which of these lines of code will compile?
Correct Answer: short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question: Packages act as containers for :-
Correct Answer: Classes , Subordinate packages
Multiple Choice Single Answer
Question: Syntax to declare a variable in java is :-
Correct Answer: type identifier [=value][,identifier[=value]…]
Multiple Choice Single Answer
Question: How can class be imported from a package to a program?
Correct Answer: import java.packagename.classname
True/False
Question: Do while loop always executes its body at least once, because its conditional _expression is at the bottom of the loop.
Correct Answer: True
Select The Blank
Question: The ________ is similar to break, except that instead of halting the execution of the loop, it starts the next iteration.
Correct Answer: Continue
Multiple Choice Multiple Answer
Question: Within what Java provides many levels of protection to allow control over the visiblity of variables and methods?
Correct Answer: Classes , Subclasses , Packages
Multiple Choice Multiple Answer
Question: Which statements can be used with the java's loop?
Correct Answer: Jump , Continue , Break
Multiple Choice Single Answer
Question: Which Control Statement allow the program to execute in a non-linear fashion?
Correct Answer: Jump
True/False
Question: In While loop condition can be any Boolean _expression
Correct Answer: True
Multiple Choice Multiple Answer
Question: Which is a public static member of thread?
Correct Answer: currenthread( ) , mainthread( )
True/False
Question: Object oriented programming organizes a program around processes acting on data.
Correct Answer: False
Select The Blank
Question: ________ are stored in hierarchical manner.
Correct Answer: Packages
Multiple Choice Single Answer
Question: Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer: Break
Multiple Choice Multiple Answer
Question: Which are the java's control statements?
Correct Answer: For , If , Switch
Multiple Choice Single Answer
Question: Which statement defines a name space in which classes are stored?
Correct Answer: package
Select The Blank
Question: Threads define several ________.
Correct Answer: constructors
Multiple Choice Multiple Answer
Question: What are different data types in java?
Correct Answer: char , double , byte
True/False
Question: There is no Global Variable in Java.
Correct Answer: True
Match The Following
Question -Correct Answer
Object- Instance of Class
Methods -Member of Class
Stack -First In, Last Out
Class -Object Oriented Programming
True/False
Question: Boolean values can be cast into any other primitive type.
Correct Answer: False
True/False
Question: Short data type range is -30,376 to 32768.
Correct Answer: False
Multiple Choice Single Answer
Question: How array is defined?
Correct Answer: int arr[];
Select The Blank
Question: In ________ statement condition is true, then statement 1 is executed.
Correct Answer: If
Match The Following
Question -Correct Answer
Derived class -Subclass of protection
Class- Interface
Packages- Directories
Specifier -Protected
Multiple Choice Multiple Answer
Question: _Expression must be of the data types :-
Correct Answer: Byte , Short , Int
Multiple Choice Single Answer
Question: What is an array?
Correct Answer: It is value collection of same type of data type
Multiple Choice Single Answer
Question: Which Control Statements allow the program to choose different paths of execution?
Correct Answer: Selection
Select The Blank
Question: ________ is referred by a variable candidate for garbage collection when the variable goes out of scope.
Correct Answer: Objects
Select The Blank
Question: The Process by which one object acquires properties of another object is ________.
Correct Answer: Inheritence
True/False
Question: Threads of equal priority must voluntarily yield control to their peers.
Correct Answer: True
Multiple Choice Single Answer
Question: How multidimensional array is declared?
Correct Answer: int[4] [5];
Select The Blank
Question: ________ method suspends a thread for some period of time.
Correct Answer: sleep( )
True/False
Question: Suppose a given instance variable has been declared private, this instance variable is manipulated by methods outside its class.
Correct Answer: False
Multiple Choice Multiple Answer
Question: Features of Java applets are :-
Correct Answer: They can be transmitted over internet , Require java enabled web browser
True/False
Question: Boolean data type have only Yes or No value.
Correct Answer: True
Multiple Choice Single Answer
Question: class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0; z = i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is output of the above program?
Correct Answer: The value assigned is 20
Multiple Choice Multiple Answer
Question: Classes usually consist of two things such as :-
Correct Answer: Instance variable , Methods
Select The Blank
Question: The most commonly used ________eger type is int.
Correct Answer: int
Select The Blank
Question: The range of Byte is ________
Correct Answer: (-128 to 127)
True/False
Question: User-defined package can also be imported just like the standard packages.
Correct Answer: True
Multiple Choice Multiple Answer
Question: Java defines two ways when instantiating an object, such as :-
Correct Answer: Can implement the runnable interface , Can extend the thread class
Multiple Choice Single Answer
Question: Which method is used to determine the class of an object?
Correct Answer: getClass( ) method
Multiple Choice Single Answer
Question: If you do not implement all the methods of an interface while implementing, what specifier should you use for the class ?
Correct Answer: abtract
Multiple Choice Multiple Answer
Question: Main thread is important for which two reasons?
Correct Answer: It is thread from which other "child" thread will be swapped , Often it must be the last thread to finish execution because It performs various shutdown actions
Select The Blank
Question: The ________ repeat a set of code while the condition is false.
Correct Answer: While loop
Select The Blank
Question: A class can only inherit a single ________.
Correct Answer: Superclass
Multiple Choice Multiple Answer
Question: Which of these lines of code will compile?
Correct Answer: short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question: Packages act as containers for :-
Correct Answer: Classes , Subordinate packages
Multiple Choice Single Answer
Question: Syntax to declare a variable in java is :-
Correct Answer: type identifier [=value][,identifier[=value]…]
Multiple Choice Single Answer
Question: How can class be imported from a package to a program?
Correct Answer: import java.packagename.classname
True/False
Question: Do while loop always executes its body at least once, because its conditional _expression is at the bottom of the loop.
Correct Answer: True
Select The Blank
Question: The ________ is similar to break, except that instead of halting the execution of the loop, it starts the next iteration.
Correct Answer: Continue
Multiple Choice Multiple Answer
Question: Within what Java provides many levels of protection to allow control over the visiblity of variables and methods?
Correct Answer: Classes , Subclasses , Packages
Multiple Choice Multiple Answer
Question: Which statements can be used with the java's loop?
Correct Answer: Jump , Continue , Break
Multiple Choice Single Answer
Question: Which Control Statement allow the program to execute in a non-linear fashion?
Correct Answer: Jump
True/False
Question: In While loop condition can be any Boolean _expression
Correct Answer: True
Multiple Choice Multiple Answer
Question: Which is a public static member of thread?
Correct Answer: currenthread( ) , mainthread( )
Java Programming - 16
Select The Blank
Question: A ________can implement more than one interface.
Correct Answer: Class
True/False
Question: Casting does not affect the original object or value.
Correct Answer: True
Multiple Choice Single Answer
Question: In multithreaded program each part of such program is called :-
Correct Answer: Thread
Multiple Choice Multiple Answer
Question: The Stack performs which two function?
Correct Answer: pop( ) , push( )
Select The Blank
Question: ________ loop repeats a statement or block while its controlling expressions is true.
Correct Answer: While
Multiple Choice Multiple Answer
Question: The Bitwise Logical Operators are :-
Correct Answer: ^ , ^= , <<
Match The Following
Question -Correct Answer
Interface -Abtract method
Pacakge declaration -Package pkg
Java.applet. -AppletClass
AppletJava.-applet Java.applet package
True/False
Question: Transient variable is variable that may not be serialized.
Correct Answer: True
Select The Blank
Question: Java defines ________ integer type.
Correct Answer: Four
Multiple Choice Single Answer
Question: Which statement checks at the beginning of a loop to see whether the next loop iteration should occur?
Correct Answer: While
Multiple Choice Multiple Answer
Question: Modulus operator % can be applied to these data types :-
Correct Answer: floating Point , Integer , Character
Multiple Choice Multiple Answer
Question: Which are keywords in Java?
Correct Answer: Extends , Synchronized , Sizeof
True/False
Question: Variable in an interface are implicitly final and static.
Correct Answer: True
Multiple Choice Single Answer
Question: The argument to which specifies the delayperiod in milliseconds
Correct Answer: sleep( )
Select The Blank
Question: Anything declared ________ can be accessed from anywhere within program.
Correct Answer: Public
True/False
Question: Java define eight simple types of data byte, short, int, long, char, float, double, boolean.
Correct Answer: True
Multiple Choice Multiple Answer
Question: There are two distinct types of multitasking. Which are those?
Correct Answer: Process based , Thread-base
Multiple Choice Single Answer
Question: Which of the following is used to get the value of the instance variables?
Correct Answer: Dot Notation
True/False
Question: Integer can Cast to byte value.
Correct Answer: False
Multiple Choice Multiple Answer
Question: What all the run( ) method can do?
Correct Answer: Can call other method , Declare variable
Multiple Choice Single Answer
Question: What is a string?
Correct Answer: A combination of characters called as string
Multiple Choice Multiple Answer
Question: What are different modifiers?
Correct Answer: Private , Protected , Final
Match The Following
Question -Correct Answer
The data, or variable, defined -Instance variable.
within a class
General form of Cast -(target--type)value
Determine the relationship that -Relational Operator
one operand has to the other
The secondary versions of the Short-Circuit Logical Operators Comparison operator
Boolean AND and OR operators
Multiple Choice Single Answer
Question: Java uses which system to store packages?
Correct Answer: File system directories
Multiple Choice Single Answer
Question: If omit the package statement, which names are put into defualt pacakge?
Correct Answer: class
Multiple Choice Single Answer
Question: Which statement provides an easy way to dispatch execution to different parts of your code based on the value of an _expression?
Correct Answer: Switch
True/False
Question: When you write finalize() method for your class, you are overriding a finalizer inherited from a super class.
Correct Answer: True
Select The Blank
Question: After calling start( ) NewThread, constructor returns to ________.
Correct Answer: main( )
Select The Blank
Question: The default encoding of objects supports the ________ of the classes.
Correct Answer: Evolution
True/False
Question: The Switch statement can have multiple cases without a break statements between them.
Correct Answer: True
Multiple Choice Single Answer
Question: What is a data structure that controls the state of a collection of threads as a whole?
Correct Answer: Thread group
True/False
Question: With java Type Casts are checked at both compile-time and runtime.
Correct Answer: True
Select The Blank
Question: A ________ is declared by use of the class keyword.
Correct Answer: class
True/False
Question: Running threads can be suspended, which temporarily suspends its activity.
Correct Answer: True
Multiple Choice Single Answer
Question: How to declare an interface example?
Correct Answer: access class classname implements interface.
Your Answer: access class classname implements interface.
Multiple Choice Multiple Answer
Question: Which thread is created automatically when the program is started?
Correct Answer: Main thread
Multiple Choice Multiple Answer
Question: What are the Logical operators?
Correct Answer: OR() , AND(&) , XOR(^)
True/False
Question: If the break statement is omited in switch statement, then execution will continue on into the next case.
Correct Answer: True
Multiple Choice Single Answer
Question: What can be created by instantiating an object type thread?
Correct Answer: Thread
Select The Blank
Question: ________ is an instance of a class that implements the runnable interface.
Correct Answer: threadOb
Select The Blank
Question: ________ variables are declared by use of the Byte Keyword.
Correct Answer: Byte
Multiple Choice Single Answer
Question: When you implement an interface method, it must be declared as :-
Correct Answer: Public
Select The Blank
Question: The explicit drop of an object reference by setting the value of a variable, whose data type is a reference type of ________.
Correct Answer: Null
Multiple Choice Multiple Answer
Question: Which are the two threads of java?
Correct Answer: mainthread( ) , childthread( )
Multiple Choice Multiple Answer
Question: Method definition has four parts, they are :-
Correct Answer: Name of the method , Type of object , List of parameters
Select The Blank
Question: The smallest integer type is ________.
Correct Answer: Byte
Multiple Choice Multiple Answer
Question: Which are the keywords use in switch statement?
Correct Answer: Case , Default
True/False
Question: Casting occurs commonly between numeric types
Correct Answer: True
Multiple Choice Multiple Answer
Question: When might your program wish to run the garbage collector?
Correct Answer: Before it enters a compute-intense section of code , Before it enters a memory-intense section of code , When it knows there will be some idle time
Multiple Choice Single Answer
Question: What are members of the threads class?
Correct Answer: Method
True/False
Question: Boolean data type have only Yes or No value.
Correct Answer: True
Select The Blank
Question: The ________ loop is java's most fundamental looping statement.
Correct Answer: While
Multiple Choice Single Answer
Question: In multithreaded program each part of such program is called :-
Correct Answer: Thread
Multiple Choice Multiple Answer
Question: Which of the following are mathematical Expressions?
Correct Answer: (+ +) , (+ =) , (- =)
True/False
Question: A thread can be blocked when waiting for a resource.
Correct Answer: True
True/False
Question: Each class in java can have a finalizer method.
Correct Answer: True
Multiple Choice Single Answer
Question: Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer: Break
True/False
Question: As abstract class must have at least one abstract method and others may be concrete or abstract.
Correct Answer: True
Multiple Choice Single Answer
Question: The argument to which specifies the delayperiod in milliseconds
Correct Answer: sleep( )
Select The Blank
Question: When java program starts up, one thread begin runing and it is called ________thread.
Correct Answer: main( )
Multiple Choice Single Answer
Question: class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0; z = i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is output of the above program?
Correct Answer: The value assigned is 20
True/False
Question: When for loop start the execution, the initialization portion of the loop is executed.
Correct Answer: True
Select The Blank
Question: ________ variables are declared by use of the Byte Keyword.
Correct Answer: Byte
Multiple Choice Single Answer
Question: Which cast must be used to cast an object to another class?
Correct Answer: Specific cast.
Multiple Choice Multiple Answer
Question: Which are keywords in Java?
Correct Answer: Extends , Synchronized , Sizeof
Multiple Choice Multiple Answer
Question: What are different data types in java?
Correct Answer: char , double , byte
Match The Following
Question -Correct Answer
The Operators used in mathematical Arithmetic Operator (= operator;)
expressions
Order in which operators are evaluated in -Order of precedence
Whether an expression is evaluated -Associativity
left-to-right or right-to-left.
Java operator syntax for right associativity (= operator;) Comparison Operator
Multiple Choice Single Answer
Question: Java uses which system to store packages?
Correct Answer: File system directories
True/False
Question: Constructors can be overloaded like regular methods.
Correct Answer: True
Multiple Choice Multiple Answer
Question: What are different modifiers?
Correct Answer: Private , Protected , Final
Select The Blank
Question: After the new thread is created, it will not start running until you call its ________method.
Correct Answer: start( )
Select The Blank
Question: The ________ repeats a set of code at least once before the condition is tested.
Correct Answer: Do-while loop
Select The Blank
Question: ________ loop repeats a statement or block while its controlling expressions is true.
Correct Answer: While
Match The Following
Question- Correct Answer
The data, or variable, defined within a class- Instance variable.
General form of Cast- (target--type)value
Determine the relationship that one operand -Relational Operator
The secondary versions of the Boolean AND Short-Circuit Logical Short-Circuit Logical and OR operators -Operators
Multiple Choice Multiple Answer
Question: The Bitwise Logical Operators are :-
Correct Answer: ^ , ^= , <<
Select The Blank
Question: The name of the new thread is specified by ________.
Correct Answer: threadName
Select The Blank
Question: ________ is probably the least used java data type
Correct Answer: short
Multiple Choice Single Answer
Question: How to change the values of the elements of the array?
Correct Answer: By using array subscript expression
Multiple Choice Single Answer
Question: What is declared within the file that will belong to the specified pacakage?
Correct Answer: classes
Multiple Choice Single Answer
Question: How many concrete classes can you have inside an interface?
Correct Answer: none
True/False
Question: A thread's priority is used to decide when to switch from one running thread to the next, this is called as the context switch.
Correct Answer: True
Select The Blank
Question: A class is ________ for an objects in java.
Correct Answer: Template
Select The Blank
Question: Anonymous classes be implemented in an ________.
Correct Answer: Interface
True/False
Question: When an object is referenced, it mean that it has been identified by the finalizer method for garbage collection.
Correct Answer: False
Multiple Choice Multiple Answer
Question: Features of Java applets are :-
Correct Answer: They can be transmitted over internet , Require java enabled web browser
Multiple Choice Multiple Answer
Question: Classes usually consist of two things such as :-
Correct Answer: Instance variable , Methods
Multiple Choice Multiple Answer
Question: Main thread is important for which two reasons?
Correct Answer: It is thread from which other "child" thread will be swapped , Often it must be the last thread to finish execution because It performs various shutdown actions
True/False
Question: If the break statement is omited in switch statement, then execution will continue on into the next case.
Correct Answer: True
Multiple Choice Multiple Answer
Question: Which are the two threads of java?
Correct Answer: mainthread( ) , childthread( )
Select The Blank
Question: The ________ repeat a set of code while the condition is false.
Correct Answer: While loop
Multiple Choice Multiple Answer
Question: Which of these lines of code will compile?
Correct Answer: short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question: What are means of encapsulating and containing the name space and scope of variables and methods?
Correct Answer: Classes , Packages , Subclasses
Multiple Choice Single Answer
Question: How is it possible to use few methods of an interface in a class?
Correct Answer: By declaring the class as abstract
Multiple Choice Single Answer
Question: Which statement will always execute the body of a loop at least once?
Correct Answer: Do
Java Programming - 18
True/False
Question: Casting occurs commonly between numeric types
Correct Answer: True
Multiple Choice Multiple Answer
Question: When might your program wish to run the garbage collector?
Correct Answer: Before it enters a compute-intense section of code , Before it enters a memory-intense section of code , When it knows there will be some idle time
Multiple Choice Single Answer
Question: What are members of the threads class?
Correct Answer: Method
True/False
Question: Boolean data type have only Yes or No value.
Correct Answer: True
Select The Blank
Question: The ________ loop is java's most fundamental looping statement.
Correct Answer: While
Multiple Choice Single Answer
Question: In multithreaded program each part of such program is called :-
Correct Answer: Thread
Multiple Choice Multiple Answer
Question: Which of the following are mathematical Expressions?
Correct Answer: (+ +) , (+ =) , (- =)
True/False
Question: A thread can be blocked when waiting for a resource.
Correct Answer: True
True/False
Question: Each class in java can have a finalizer method.
Correct Answer: True
Multiple Choice Single Answer
Question: Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer: Break
True/False
Question: As abstract class must have at least one abstract method and others may be concrete or abstract.
Correct Answer: True
Multiple Choice Single Answer
Question: The argument to which specifies the delayperiod in milliseconds
Correct Answer: sleep( )
Select The Blank
Question: When java program starts up, one thread begin runing and it is called ________thread.
Correct Answer: main( )
Multiple Choice Single Answer
Question: class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0; z = i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is output of the above program?
Correct Answer: The value assigned is 20
True/False
Question: When for loop start the execution, the initialization portion of the loop is executed.
Correct Answer: True
Select The Blank
Question: ________ variables are declared by use of the Byte Keyword.
Correct Answer: Byte
Multiple Choice Single Answer
Question: Which cast must be used to cast an object to another class?
Correct Answer: Specific cast.
Multiple Choice Multiple Answer
Question: Which are keywords in Java?
Correct Answer: Extends , Synchronized , Sizeof
Multiple Choice Multiple Answer
Question: What are different data types in java?
Correct Answer: char , double , byte
Match The Following
Question -Correct Answer
The Operators used in mathematical Arithmetic Operator (= operator;)
expressions
Order in which operators are- Order of precedence
Whether an expression is evaluated- Associativity
left-to-right or right-to-left
Java operator syntax for right (= operator;) Comparison Operator
associativity
Multiple Choice Single Answer
Question: Java uses which system to store packages?
Correct Answer: File system directories
True/False
Question: Constructors can be overloaded like regular methods.
Correct Answer: True
Multiple Choice Multiple Answer
Question: What are different modifiers?
Correct Answer: Private , Protected , Final
Select The Blank
Question: After the new thread is created, it will not start running until you call its ________method.
Correct Answer: start( )
Select The Blank
Question: The ________ repeats a set of code at least once before the condition is tested.
Correct Answer: Do-while loop
Select The Blank
Question: ________ loop repeats a statement or block while its controlling expressions is true.
Correct Answer: While
Match The Following
Question- Correct Answer
The data, or variable, defined -Instance variable.
within a class General form of Cast -(target--type)value
Determine the relationship that -Relational Operator
The secondary versions of the Short-Circuit Logical Operators Short-Circuit Logical Operators
Boolean AND and OR operators
Multiple Choice Multiple Answer
Question: The Bitwise Logical Operators are :-
Correct Answer: ^ , ^= , <<
Select The Blank
Question: The name of the new thread is specified by ________.
Correct Answer: threadName
Select The Blank
Question: ________ is probably the least used java data type
Correct Answer: short
Multiple Choice Single Answer
Question: How to change the values of the elements of the array?
Correct Answer: By using array subscript expression
Multiple Choice Single Answer
Question: What is declared within the file that will belong to the specified pacakage?
Correct Answer: classes
Multiple Choice Single Answer
Question: How many concrete classes can you have inside an interface?
Correct Answer: none
True/False
Question: A thread's priority is used to decide when to switch from one running thread to the next, this is called as the context switch.
Correct Answer: True
Select The Blank
Question: A class is ________ for an objects in java.
Correct Answer: Template
Select The Blank
Question: Anonymous classes be implemented in an ________.
Correct Answer: Interface
True/False
Question: When an object is referenced, it mean that it has been identified by the finalizer method for garbage collection.
Correct Answer: False
Multiple Choice Multiple Answer
Question: Features of Java applets are :-
Correct Answer: They can be transmitted over internet , Require java enabled web browser
Multiple Choice Multiple Answer
Question: Classes usually consist of two things such as :-
Correct Answer: Instance variable , Methods
Multiple Choice Multiple Answer
Question: Main thread is important for which two reasons?
Correct Answer: It is thread from which other "child" thread will be swapped , Often it must be the last thread to finish execution because It performs various shutdown actions
True/False
Question: If the break statement is omited in switch statement, then execution will continue on into the next case.
Correct Answer: True
Multiple Choice Multiple Answer
Question: Which are the two threads of java?
Correct Answer: mainthread( ) , childthread( )
Select The Blank
Question: The ________ repeat a set of code while the condition is false.
Correct Answer: While loop
Multiple Choice Multiple Answer
Question: Which of these lines of code will compile?
Correct Answer: short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question: What are means of encapsulating and containing the name space and scope of variables and methods?
Correct Answer: Classes , Packages , Subclasses
Multiple Choice Single Answer
Question: How is it possible to use few methods of an interface in a class?
Correct Answer: By declaring the class as abstract
Multiple Choice Single Answer
Question: Which statement will always execute the body of a loop at least once?
Correct Answer: Do
Java Programming - 17
True/False
Question: Object oriented programming organizes a program around processes acting on data.
Correct Answer: False
Select The Blank
Question: ________ are stored in hierarchical manner.
Correct Answer: Packages
Multiple Choice Single Answer
Question: Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer: Break
Multiple Choice Multiple Answer
Question: Which are the java's control statements?
Correct Answer: For , If , Switch
Multiple Choice Single Answer
Question: Which statement defines a name space in which classes are stored?
Correct Answer: package
Select The Blank
Question: Threads define several ________.
Correct Answer: constructors
Multiple Choice Multiple Answer
Question: What are different data types in java?
Correct Answer: char , double , byte
True/False
Question: There is no Global Variable in Java.
Correct Answer: True
Match The Following
Question -Correct Answer
Object- Instance of Class
Methods -Member of Class
Stack -First In, Last Out
Class Object -Oriented Programming
True/False
Question: Boolean values can be cast into any other primitive type.
Correct Answer: False
True/False
Question: Short data type range is -30,376 to 32768.
Correct Answer: False
Multiple Choice Single Answer
Question: How array is defined?
Correct Answer: int arr[];
Select The Blank
Question: In ________ statement condition is true, then statement 1 is executed.
Correct Answer: If
Multiple Choice Multiple Answer
Question: Features of Java applets are :-
Correct Answer: They can be transmitted over internet , Require java enabled web browser
True/False
Question: Boolean data type have only Yes or No value.
Correct Answer: True
Multiple Choice Single Answer
Question: class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0; z = i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is output of the above program?
Correct Answer: The value assigned is 20
Multiple Choice Multiple Answer
Question: Classes usually consist of two things such as :-
Correct Answer: Instance variable , Methods
Select The Blank
Question: The most commonly used ________eger type is int.
Correct Answer: int
Select The Blank
Question: The range of Byte is ________
Correct Answer: (-128 to 127)
True/False
Question: User-defined package can also be imported just like the standard packages.
Correct Answer: True
Multiple Choice Multiple Answer
Question: Java defines two ways when instantiating an object, such as :-
Correct Answer: Can implement the runnable interface , Can extend the thread class
Multiple Choice Single Answer
Question: Which method is used to determine the class of an object?
Correct Answer: getClass( ) method
Multiple Choice Single Answer
Question: If you do not implement all the methods of an interface while implementing, what specifier should you use for the class ?
Correct Answer: abtract
Multiple Choice Multiple Answer
Question: Main thread is important for which two reasons?
Correct Answer: It is thread from which other "child" thread will be swapped , Often it must be the last thread to finish execution because It performs various shutdown actions
Select The Blank
Question: The ________ repeat a set of code while the condition is false.
Correct Answer: While loop
Select The Blank
Question: A class can only inherit a single ________.
Correct Answer: Superclass
Multiple Choice Multiple Answer
Question: Which of these lines of code will compile?
Correct Answer: short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question: Packages act as containers for :-
Correct Answer: Classes , Subordinate packages
Multiple Choice Single Answer
Question: Syntax to declare a variable in java is :-
Correct Answer: type identifier [=value][,identifier[=value]…]
Multiple Choice Single Answer
Question: How can class be imported from a package to a program?
Correct Answer: import java.packagename.classname
True/False
Question: Do while loop always executes its body at least once, because its conditional _expression is at the bottom of the loop.
Correct Answer: True
Select The Blank
Question: The ________ is similar to break, except that instead of halting the execution of the loop, it starts the next iteration.
Correct Answer: Continue
Multiple Choice Multiple Answer
Question: Within what Java provides many levels of protection to allow control over the visiblity of variables and methods?
Correct Answer: Classes , Subclasses , Packages
Multiple Choice Multiple Answer
Question: Which statements can be used with the java's loop?
Correct Answer: Jump , Continue , Break
Multiple Choice Single Answer
Question: Which Control Statement allow the program to execute in a non-linear fashion?
Correct Answer: Jump
True/False
Question: In While loop condition can be any Boolean _expression
Correct Answer: True
Multiple Choice Multiple Answer
Question: Which is a public static member of thread?
Correct Answer: currenthread( ) , mainthread( )
True/False
Question: Object oriented programming organizes a program around processes acting on data.
Correct Answer: False
Select The Blank
Question: ________ are stored in hierarchical manner.
Correct Answer: Packages
Multiple Choice Single Answer
Question: Which statement has a the effect of "jumping out" of the switch statement?
Correct Answer: Break
Multiple Choice Multiple Answer
Question: Which are the java's control statements?
Correct Answer: For , If , Switch
Multiple Choice Single Answer
Question: Which statement defines a name space in which classes are stored?
Correct Answer: package
Select The Blank
Question: Threads define several ________.
Correct Answer: constructors
Multiple Choice Multiple Answer
Question: What are different data types in java?
Correct Answer: char , double , byte
True/False
Question: There is no Global Variable in Java.
Correct Answer: True
Match The Following
Question -Correct Answer
Object- Instance of Class
Methods -Member of Class
Stack -First In, Last Out
Class -Object Oriented Programming
True/False
Question: Boolean values can be cast into any other primitive type.
Correct Answer: False
True/False
Question: Short data type range is -30,376 to 32768.
Correct Answer: False
Multiple Choice Single Answer
Question: How array is defined?
Correct Answer: int arr[];
Select The Blank
Question: In ________ statement condition is true, then statement 1 is executed.
Correct Answer: If
Match The Following
Question -Correct Answer
Derived class -Subclass of protection
Class- Interface
Packages- Directories
Specifier -Protected
Multiple Choice Multiple Answer
Question: _Expression must be of the data types :-
Correct Answer: Byte , Short , Int
Multiple Choice Single Answer
Question: What is an array?
Correct Answer: It is value collection of same type of data type
Multiple Choice Single Answer
Question: Which Control Statements allow the program to choose different paths of execution?
Correct Answer: Selection
Select The Blank
Question: ________ is referred by a variable candidate for garbage collection when the variable goes out of scope.
Correct Answer: Objects
Select The Blank
Question: The Process by which one object acquires properties of another object is ________.
Correct Answer: Inheritence
True/False
Question: Threads of equal priority must voluntarily yield control to their peers.
Correct Answer: True
Multiple Choice Single Answer
Question: How multidimensional array is declared?
Correct Answer: int[4] [5];
Select The Blank
Question: ________ method suspends a thread for some period of time.
Correct Answer: sleep( )
True/False
Question: Suppose a given instance variable has been declared private, this instance variable is manipulated by methods outside its class.
Correct Answer: False
Multiple Choice Multiple Answer
Question: Features of Java applets are :-
Correct Answer: They can be transmitted over internet , Require java enabled web browser
True/False
Question: Boolean data type have only Yes or No value.
Correct Answer: True
Multiple Choice Single Answer
Question: class conditional { public static void main(String args[]) { int i = 20; int j = 55; int z = 0; z = i < j ? i : j; // ternary operator System.out.println("The value assigned is " + z); } } } What is output of the above program?
Correct Answer: The value assigned is 20
Multiple Choice Multiple Answer
Question: Classes usually consist of two things such as :-
Correct Answer: Instance variable , Methods
Select The Blank
Question: The most commonly used ________eger type is int.
Correct Answer: int
Select The Blank
Question: The range of Byte is ________
Correct Answer: (-128 to 127)
True/False
Question: User-defined package can also be imported just like the standard packages.
Correct Answer: True
Multiple Choice Multiple Answer
Question: Java defines two ways when instantiating an object, such as :-
Correct Answer: Can implement the runnable interface , Can extend the thread class
Multiple Choice Single Answer
Question: Which method is used to determine the class of an object?
Correct Answer: getClass( ) method
Multiple Choice Single Answer
Question: If you do not implement all the methods of an interface while implementing, what specifier should you use for the class ?
Correct Answer: abtract
Multiple Choice Multiple Answer
Question: Main thread is important for which two reasons?
Correct Answer: It is thread from which other "child" thread will be swapped , Often it must be the last thread to finish execution because It performs various shutdown actions
Select The Blank
Question: The ________ repeat a set of code while the condition is false.
Correct Answer: While loop
Select The Blank
Question: A class can only inherit a single ________.
Correct Answer: Superclass
Multiple Choice Multiple Answer
Question: Which of these lines of code will compile?
Correct Answer: short s = 20; , char c = 32; , double d = 1.4;
Multiple Choice Multiple Answer
Question: Packages act as containers for :-
Correct Answer: Classes , Subordinate packages
Multiple Choice Single Answer
Question: Syntax to declare a variable in java is :-
Correct Answer: type identifier [=value][,identifier[=value]…]
Multiple Choice Single Answer
Question: How can class be imported from a package to a program?
Correct Answer: import java.packagename.classname
True/False
Question: Do while loop always executes its body at least once, because its conditional _expression is at the bottom of the loop.
Correct Answer: True
Select The Blank
Question: The ________ is similar to break, except that instead of halting the execution of the loop, it starts the next iteration.
Correct Answer: Continue
Multiple Choice Multiple Answer
Question: Within what Java provides many levels of protection to allow control over the visiblity of variables and methods?
Correct Answer: Classes , Subclasses , Packages
Multiple Choice Multiple Answer
Question: Which statements can be used with the java's loop?
Correct Answer: Jump , Continue , Break
Multiple Choice Single Answer
Question: Which Control Statement allow the program to execute in a non-linear fashion?
Correct Answer: Jump
True/False
Question: In While loop condition can be any Boolean _expression
Correct Answer: True
Multiple Choice Multiple Answer
Question: Which is a public static member of thread?
Correct Answer: currenthread( ) , mainthread( )
Java Programming - 16
Select The Blank
Question: A ________can implement more than one interface.
Correct Answer: Class
True/False
Question: Casting does not affect the original object or value.
Correct Answer: True
Multiple Choice Single Answer
Question: In multithreaded program each part of such program is called :-
Correct Answer: Thread
Multiple Choice Multiple Answer
Question: The Stack performs which two function?
Correct Answer: pop( ) , push( )
Select The Blank
Question: ________ loop repeats a statement or block while its controlling expressions is true.
Correct Answer: While
Multiple Choice Multiple Answer
Question: The Bitwise Logical Operators are :-
Correct Answer: ^ , ^= , <<
Match The Following
Question -Correct Answer
Interface -Abtract method
Pacakge declaration -Package pkg
Java.applet. -AppletClass
AppletJava.-applet Java.applet package
True/False
Question: Transient variable is variable that may not be serialized.
Correct Answer: True
Select The Blank
Question: Java defines ________ integer type.
Correct Answer: Four
Multiple Choice Single Answer
Question: Which statement checks at the beginning of a loop to see whether the next loop iteration should occur?
Correct Answer: While
Multiple Choice Multiple Answer
Question: Modulus operator % can be applied to these data types :-
Correct Answer: floating Point , Integer , Character
Multiple Choice Multiple Answer
Question: Which are keywords in Java?
Correct Answer: Extends , Synchronized , Sizeof
True/False
Question: Variable in an interface are implicitly final and static.
Correct Answer: True
Multiple Choice Single Answer
Question: The argument to which specifies the delayperiod in milliseconds
Correct Answer: sleep( )
Select The Blank
Question: Anything declared ________ can be accessed from anywhere within program.
Correct Answer: Public
True/False
Question: Java define eight simple types of data byte, short, int, long, char, float, double, boolean.
Correct Answer: True
Multiple Choice Multiple Answer
Question: There are two distinct types of multitasking. Which are those?
Correct Answer: Process based , Thread-base
Multiple Choice Single Answer
Question: Which of the following is used to get the value of the instance variables?
Correct Answer: Dot Notation
True/False
Question: Integer can Cast to byte value.
Correct Answer: False
Multiple Choice Multiple Answer
Question: What all the run( ) method can do?
Correct Answer: Can call other method , Declare variable
Multiple Choice Single Answer
Question: What is a string?
Correct Answer: A combination of characters called as string
Multiple Choice Multiple Answer
Question: What are different modifiers?
Correct Answer: Private , Protected , Final
Match The Following
Question -Correct Answer
The data, or variable, defined -Instance variable.
within a class
General form of Cast -(target--type)value
Determine the relationship that -Relational Operator
one operand has to the other
The secondary versions of the Short-Circuit Logical Operators Comparison operator
Boolean AND and OR operators
Multiple Choice Single Answer
Question: Java uses which system to store packages?
Correct Answer: File system directories
Multiple Choice Single Answer
Question: If omit the package statement, which names are put into defualt pacakge?
Correct Answer: class
Multiple Choice Single Answer
Question: Which statement provides an easy way to dispatch execution to different parts of your code based on the value of an _expression?
Correct Answer: Switch
True/False
Question: When you write finalize() method for your class, you are overriding a finalizer inherited from a super class.
Correct Answer: True
Select The Blank
Question: After calling start( ) NewThread, constructor returns to ________.
Correct Answer: main( )
Select The Blank
Question: The default encoding of objects supports the ________ of the classes.
Correct Answer: Evolution
True/False
Question: The Switch statement can have multiple cases without a break statements between them.
Correct Answer: True
Multiple Choice Single Answer
Question: What is a data structure that controls the state of a collection of threads as a whole?
Correct Answer: Thread group
True/False
Question: With java Type Casts are checked at both compile-time and runtime.
Correct Answer: True
Select The Blank
Question: A ________ is declared by use of the class keyword.
Correct Answer: class
True/False
Question: Running threads can be suspended, which temporarily suspends its activity.
Correct Answer: True
Multiple Choice Single Answer
Question: How to declare an interface example?
Correct Answer: access class classname implements interface.
Your Answer: access class classname implements interface.
Multiple Choice Multiple Answer
Question: Which thread is created automatically when the program is started?
Correct Answer: Main thread
Multiple Choice Multiple Answer
Question: What are the Logical operators?
Correct Answer: OR() , AND(&) , XOR(^)
True/False
Question: If the break statement is omited in switch statement, then execution will continue on into the next case.
Correct Answer: True
Multiple Choice Single Answer
Question: What can be created by instantiating an object type thread?
Correct Answer: Thread
Select The Blank
Question: ________ is an instance of a class that implements the runnable interface.
Correct Answer: threadOb
Select The Blank
Question: ________ variables are declared by use of the Byte Keyword.
Correct Answer: Byte
Multiple Choice Single Answer
Question: When you implement an interface method, it must be declared as :-
Correct Answer: Public
Select The Blank
Question: The explicit drop of an object reference by setting the value of a variable, whose data type is a reference type of ________.
Correct Answer: Null
Multiple Choice Multiple Answer
Question: Which are the two threads of java?
Correct Answer: mainthread( ) , childthread( )
Multiple Choice Multiple Answer
Question: Method definition has four parts, they are :-
Correct Answer: Name of the method , Type of object , List of parameters
Select The Blank
Question: The smallest integer type is ________.
Correct Answer: Byte
Multiple Choice Multiple Answer
Question: Which are the keywords use in switch statement?
Correct Answer: Case , Default
Subscribe to:
Posts (Atom)