




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Big Java Early Objects 5th Edition Test Bank
Typology: Exams
1 / 28
This page cannot be seen from the preview
Don't miss anything!





















ChapterA 1 ATestbank:AIntroduction
MultipleAChoice
1.AWhichAstatementAbestAdescribesAaAcomputerAprogram? A)AAAprogramAisAaAsequenceAofAcomments. B)AAAprogramAcanAdecideAwhatAtaskAitAisAtoAperform. C)AAAprogramAisAaAsequenceAofAinstructionsAandAdecisionsAthatAtheAcomputerAcarriesAout. D)AAAprogramAcanAonlyAperformAoneAsimpleAtask.
Ans:AC SectionARef:ASectionA1.1AComputerAPrograms Title:AWhichAstatementAbestAdescribesAaAcomputerAprogram? Difficulty:AEasy 2.AWhichAstatementAregardingAcomputerAprogramsAisAcorrect? A)AComputerAprogramsAcanAdecideAwhatAtaskAtoAperform. B)ALargeAandAcomplexAcomputerAprogramsAareAgenerallyAwrittenAbyAonlyAoneAprogrammer. C)AComputerAprogramsAareAcomposedAofAextremelyAprimitiveAoperations. D)ASmallAcomputerAprogramsAareAnotAdocumented.
Answer:Ac SectionAreference:ASectionA1.1AComputerAPrograms Title:AWhichAstatementAregardingAcomputerAprogramsAisAcorrect? Difficulty:AEasy 3.AWhatAdoesACPUAstandAfor? A)AComputerAProgrammingAUnit B)AComputerAProcessingAUnit C)ACentralAProcessingAUnit D)ACentralAProgrammingAUnit
Ans:AC SectionARef:ASectionA1.2ATheAAnatomyAofAaAComputer Title:AWhatAdoesACPUAstandAfor? Difficulty:AEasy
4.AWhichAoneAofAtheAfollowingAisANOTAaAfunctionAofAaACPU? A)APerformingAarithmeticAoperations B)AProcessingAdataAandAcontrollingAprograms C)AQueryingAaAdatabase D)AFetchingAandAstoringAdataAfromAstorageAandAinputAdevices
Ans:AC SectionARef:ASectionA1.2ATheAAnatomyAofAaAComputer Title:AWhichAoneAofAtheAfollowingAisANOTAaAfunctionAofAaACPU? Difficulty:AEasy
5.AWhichAtypeAofAstorageAisAmadeAfromAmemoryAchips? A)ACD B)AhardAdisk C)AprimaryAstorage D)ADVD
Ans:AC SectionARef:ASectionA1.2ATheAAnatomyAofAaAComputer Title:AWhichAtypeAofAstorageAisAmadeAfromAmemoryAchips? Difficulty:AEasy
6.AWhichAoneAofAtheAfollowingAmemoryAtypesAprovidesAstorageAthatApersistsAwithoutAelectricity? A)AprimaryAstorage B)ARAM C)Amemory D)AsecondaryAstorage
Ans:AD SectionARef:ASectionA1.2ATheAAnatomyAofAaAComputer Title:AWhichAoneAofAtheAfollowingAmemoryAtypesAprovidesAstorageAthatApersistsAwithoutAelectricit y? Difficulty:AEasy
7.AWhichAtypeAofAsecondaryAstorageAconsistsAofArotatingAplatters,AwhichAareAcoatedAwithAaAmagne ticAmaterial,AandAread/writeAheads,AwhichAcanAdetectAandAchangeAtheApatternsAofAvaryingAmagneti cAfluxAonAtheAplatters? A)AhardAdisk B)Aflashdrive C)ADVD D)ARAM
Ans:AA SectionARef:ASectionA1.2ATheAAnatomyAofAaAComputer Title:AWhichAtypeAofAsecondaryAstorageAconsistsAofArotatingAplatters? Difficulty:AEasy
Title:AWhichAmemoryAtypeAdoesAnotAprovideApersistentAstorage? Difficulty:AEasy
12.AWhichAofAtheAfollowingAisAnotAcontainedAonAtheAmotherboardAofAaAcomputer? A)ARAM B)AintegratedAcircuit C)AhardAdisk D)ACPU
Answer:Ac SectionAreference:A1.2ATheAAnatomyAofAaAComputer Title:AWhichAofAtheAfollowingAisAnotAcontainedAonAtheAmotherboardAofAaAcomputer? Difficulty:AEasy 13.AWhatAtermAisAusedAtoAreferAtoAtheAcomputerAinstructionsAthatAareAexecutedAbyAaACPU,AwhichA areAspecificAtoAeachACPU? A)AvirtualAmachine B)AmachineAcode C)Ahigh-levelAcode D)AinstructionAset
Ans:AB SectionARef:ASectionA1.3ATheAJavaAProgrammingALanguage Title:AWhatAtermAisAusedAtoAreferAtoAtheAcomputerAinstructionsAthatAareAexecutedAbyAaACPU? Difficulty:AEasy 14.AWhatAisAtheAJVM? A)AAAvitalAmachineAthatAneverAfailsAtoArunAcompiledAJavaAcode. B)AAAvitalAmachineAthatAcompilesAJavaAcodeAintoAmachineAinstructions. C)AAAvirtualAmachineAthatArunsAcompiledAJavaAcodeAonAanyACPU. D)AAAvirtualAmachineAthatAcompilesAJavaAcodeAintoAmachineAinstructions.
Answer:Ac SectionAreference:A1.3ATheAJavaAProgrammingALanguage Title:AWhatAisAtheAJVM? Difficulty:AEasy
15.AWhatAisAtheAtermAusedAtoAreferAtoAJavaAcodeAthatArunsAinAaAbrowser? A)Aapplet B)Ascript C)Ahtml D)Aclass
Answer:Aa SectionAreference:A1.3ATheAJavaAProgrammingALanguage Title:AWhatAisAtheAtermAusedAtoAreferAtoAJavaAcodeAthatArunsAinAaAbrowser? Difficulty:Aeasy
16.AWhatAtermAisAusedAtoAreferAtoAlanguagesAthatAallowAprogrammersAtoAdescribeAtasksAatAaAhighe rAconceptualAlevelAthanAmachineAcode? A)Avirtual B)Ahigh-level C)Asophisticated D)Aconceptual
Ans:AB SectionARef:ASectionA1.3ATheAJavaAProgrammingALanguage Title:AWhatAtermAisAusedAtoAreferAtoAlanguagesAthatAallowAprogrammersAtoAdescribeAtasksAatAaAhig herAconceptualAlevelAthanAmachineAcode? Difficulty:AEasy
17.AWhatAtranslatesAhigh-levelAdescriptionsAintoAmachineAcode? A)Adebugger B)Aassembler C)Acompiler D)Alinker
Ans:AC SectionARef:ASectionA1.3ATheAJavaAProgrammingALanguage Title:AWhatAtranslatesAhigh-levelAdescriptionsAintoAmachineAcode? Difficulty:AEasy
18.AWhatAtranslatesAJavaAsourceAcodeAintoAfilesAthatAcontainAinstructionsAforAtheAJVM? A)Alinker B)Acompiler C)Aassembler D)Ainterpreter
Ans:AB SectionARef:ASectionA1.3ATheAJavaAProgrammingALanguage Title:AWhatAtranslatesAJavaAsourceAcodeAintoAfilesAthatAcontainAinstructionsAforAtheAJVM? Difficulty:AEasy
19.AWhichAstatementAisAtrueAaboutArunningAaAJavaAprogramAonAaAdifferentACPU? A)AYouAneedAdifferentAJavaAsourceAcodeAforAeachAprocessor. B)AYouAcanAtakeAcodeAthatAhasAbeenAgeneratedAbyAtheAJavaAcompilerAandArunAitAonAdifferentACPU s. C)AYouAneedAtoArecompileAtheAJavaAprogramAforAeachAprocessor. D)AYouAcannotArunAtheAprogramAonAaAcomputerAwithAaAdifferentAprocessorAbecauseAJava,AbeingAa Ahigh-levelAprogrammingAlanguage,AisAmachineAdependent.
Ans:AB SectionARef:ASectionA1.3ATheAJavaAProgrammingALangauge
24.AWhatAisAtheAnameAofAtheAfileAdeclaringAtheAclassAnamedMyClass? A)AMyClass B)Amyclass.java C)AMyClass.class D)AMyClass.java
Answer:Ad SectionAreference:A1.5AAnalyzingAYourAFirstAProgram Title:AWhatAisAtheAnameAofAtheAfileAdeclaringAtheAclassAnamedAMyClass? DifficultyA:AEasy
25.AInAaAconsoleAwindow,AhowAdoAyouAcompileAtheAdeclarationAofAtheAclassMyClass? A)AjavacAMyClass.java B)AjavacAMyClass C)AjavaAMyClass.java D)AjavaAMyClass
Answer:Aa SectionAreference:A1.5AAnalyzingAYourAFirstAProgram Title:AInAaAconsoleAwindow,AhowAdoAyouAcompileAtheAdeclarationAofAtheAclassAMyClass? DifficultyA:AMedium
26.AInAaAconsoleAwindow,AassumingAthatMyClassincludesAthemainmethod,AhowAdoAyouArunAtheAp rogram? A)AjavaAMyClass.class B)AjavacAMyClass C)AjavaAMyClass D)AjavacAMyClass.java
Answer:Ac SectionAreference:A1.5AAnalyzingAYourAFirstAProgram Title:AInAaAconsoleAwindow,AhowAdoAyouArunAaAJavaAprogram? Difficulty:AMedium
27.AA(n)A____AisAaAcollectionAofAcodeAthatAhasAbeenAprogrammedAandAtranslatedAbyAsomeoneAelse ,AreadyAforAuseAinAyourAprogram. A)Amethod B)Aclass C)Aparameter D)Alibrary
Answer:Ad SectionAreference:A1.5AAnalyzingAYourAFirstAProgram Title:AA(n)A____AisAaAcollectionAofAcodeA… Difficulty:AEasy
28.AEveryAJavaAprogramAconsistsAofAoneAorAmoreAofAtheseAfundamentalAbuildingAblocks. A)Aclass B)ACPU C)Aapplet D)Aparameter
Ans:AA SectionARef:ASectionA1.5AnalyzingAYourAFirstAProgram Title:ATBAEveryAJavaAprogramAconsistsAofAoneAorAmoreAofAtheseAfundamentalAbuildingAblocks. Difficulty:AEasy
29.AWhatAisAtheAnameAofAtheAfileAthatAcontainsAtheAJavaAsourceAcodeAforAtheAclassABankAccount? A)ABankAccount B)ABankAccount.java C)ABankAccount.class D)ABankAccount.txt
Ans:AB SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AWhatAisAtheAnameAofAtheAfileAthatAcontainsAtheAJavaAsourceAcodeAforAthisAclass? Difficulty:AEasy
30.AAA__________AcontainsAsequencesAofAinstructionsAtoAperformAaAparticularAtask. A)Aparameter B)Alabel C)Avariable D)Amethod
Ans:AD SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AAA__________AcontainsAsequencesAofAinstructionsAtoAperformAaAparticularAtask. Difficulty:AEasy
31.AWhatAtermAisAusedAtoAreferAtoAanAinstructionAinAaAmethod? A)Astatement B)Aconstant C)Acomment D)Aobject
Ans:AA SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AWhatAtermAisAusedAtoAreferAtoAanAinstructionAinAaAmethod? Difficulty:AEasy
32.AInAJava,AeveryAstatementAmustAendAwithAthisAsymbol. A)A.
B)Apackage C)Aobject D)Acomment
Ans:AC SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AWhatAentityAbelongsAtoAaAclassAandAisAmanipulatedAinAaAprogram? Difficulty:AEasy
37.AAAmethodAisAcalledAonAwhatAentityAinAtheAprogram? A)Aconstant B)Astatement C)Acomment D)Aobject
Ans:AD SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AAAmethodAisAcalledAonAwhatAentityAinAtheAprogram? Difficulty:AEasy
38.AWhatAtermAisAusedAtoAreferAtoAinformationApassedAinAtoAaAmethodAonAaAcall? A)Aclass B)Aobject C)Aparameter D)Acomment
Ans:AC SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AWhatAtermAisAusedAtoAreferAtoAinformationApassedAinAtoAaAmethodAonAaAcall? Difficulty:AEasy
39.AParametersAtoAmethodsAareAenclosedAbyAtheseAsymbols. A)A() B)A“” C)A{} D)A//
Ans:AA SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AParametersAtoAmethodsAareAenclosedAbyAtheseAsymbols. Difficulty:AEasy
40.AAAmethodAmayAbeAcalledAbyAspecifyingAwhichA 3 AitemsAinAtheAspecifiedAorder? A)AmethodAname,Aparameters,Aobject B)Aobject,Aparameters,AmethodAname
C)Aobject,AmethodAname,Aparameters D)Aclass,Aparameters,AmethodAname
Ans:AC SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AAAmethodAisAcalledAbyAspecifyingAwhichA 3 AitemsAinAtheAspecifiedAorder? Difficulty:AEasy
41.AWhatAisAtheAsyntaxAforAcallingAtheAprintlnAmethodAonAtheAobjectASystem.out? A)Aprintln(“AnyAmessage”).System.out; B)ASystem.out(“AnyAmessage”).println; C)ASystem.out.println(“AnyAmessage”); D)Aprintln(System.out,A“AnyAmessage”);
Ans:AC SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AWhatAisAtheAsyntaxAforAcallingAtheAprintlnAmethodAonAtheAobjectASystem.out? Difficulty:AEasy
42.AWhatAisAtheAobjectAinAtheAgivenAmethodAcall?
System.out.println(“Welcome”);
A)Aprintln B)ASystem.out C)ASystem.out.println D)ASystem
Ans:AB SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AWhatAisAtheAobjectAinAtheAgivenAmethodAcall? Difficulty:AEasy
43.AWhatAisAtheAnameAofAtheAmethodAinAtheAgivenAmethodAcall?
System.out.println(“Welcome”);
A)A“Welcome” B)ASystem C)Aprintln D)Aout
Ans:AC SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AWhatAisAtheAnameAofAtheAmethodAinAtheAgivenAmethodAcall? Difficulty:AEasy
Ans:AB SectionARef:ASectionA1.5AnalyzingAYourAFirstAProgram Title:AWhatAtypeAofAprogramAcanAyouAuseAtoAenterAyourAJavaAprogram? Difficulty:AEasy
48.AWhichAstatementAisAtrueAaboutAaAJavaAprogram? A)AJavaAforcesAtheAprogrammerAtoAuseAaAparticularAlayoutAforAreadability. B)AJavaArequiresAthatAatAmostAoneAstatementAappearAonAoneAline. C)ATheAfirstAmethodAthatAisAexecutedAinAaAJavaAprogramAisAcalledAMain. D)AJavaAisAcaseAsensitive.
Ans:AD SectionARef:ASectionA1.5AnalyzingAYourAFirstAProgram Title:AWhichAstatementAisAtrueAaboutAaAJavaAprogram? Difficulty:AEasy 49.AWhatAisAtheAnameAofAtheAclassAdeclaredAinAtheAfileAMyClass.java? A)AMyClass B)AMyClass.class C)AMyClass.java D)Amyclass
Ans:AA SectionARef:ASectionA1.5AnalyzingAYourAFirstAProgram Title:AWhatAisAtheAnameAofAtheAclassAdeclaredAinAtheAfileAMyClass.java? Difficulty:AEasy
50.ATheAJavaAcompilerAtranslatesAsourceAcodeAintoAwhatAtypeAofAfile? A)Adocument B)Aobject C)Aclass D)Atext
Ans:AC SectionARef:ASectionA1.5AnalyzingAYourAFirstAProgram Title:ATheAJavaAcompilerAtranslatesAsourceAcodeAintoAwhatAtypeAofAfile? Difficulty:AEasy
51.AWhatAisAtheAnameAofAtheAfileAcreatedAafterAaAsuccessfulAcompilationAofAMyClass.java? A)AMyClass.java B)AMyClass.class C)AmyClass.class D)AMyClass
Ans:AB SectionARef:ASectionA1.5AnalyzingAYourAFirstAProgram
Title:AWhatAisAtheAnameAofAtheAfileAcreatedAafterAaAsuccessfulAcompilationAofAMyClass.java? Difficulty:AEasy
52.AWhatAdoesAaAclassAfileAcontain? A)AInstructionsAforAtheAspecificACPUAonAtheAcomputer. B)AInstructionsAforAtheAJavaAVirtualAMachine. C)ATheAJVMAinstructionsAforAallAclassesAinAtheAJavaAapplication. D)ATheAJavaAsourceAcodeAforAaAclass.
Ans:AB SectionARef:ASectionA1.5AnalyzingAYourAFirstAProgram Title:AWhatAdoesAaAclassAfileAcontain? Difficulty:AEasy
53.AWhatAisAtheAfileAextensionAofAaAJavaAclassAfile? A)A.java B)AThereAisAnoAfileAextension. C)A.class D)A.txt
Ans:AC SectionARef:ASectionA1.5AnalyzingAYourAFirstAProgram Title:AWhatAisAtheAfileAextensionAofAaAJavaAclassAfile? Difficulty:AEasy
54.AInAaAconsoleAwindow,AwhatAisAtheAnameAofAtheAcommandAusedAtoAcompileAJavaAsourceAcode? A)Ajavac B)Ajavadoc C)Acompile D)Ajava
Ans:AA SectionARef:ASectionA1.5AAnalyzingAYourAFirstAProgram Title:AInAaAconsoleAwindow,AwhatAisAtheAnameAofAtheAcommandAusedAtoAcompileAJavaAsourceAcod e? Difficulty:AEasy
55.AInAaAconsoleAwindow,AwhatAisAtheAnameAofAtheAcommandAusedAtoArunAaAJavaAprogram? A)Ajavadoc B)Ajavac C)Ajava D)Arun
Ans:AC SectionARef:ASectionA1.5AnalyzingAYourAFirstAProgram
Title:AWhichAofAtheAfollowingAstatementsAisAtrueAaboutArunningAaAJavaAprogram? Difficulty:AEasy
60.ASupposeAthatAaAcomputerAvirusAinfectsAyourAcomputerAandAcorruptsAtheAfilesAyouAwereAgoingA toAsubmitAforAyourAcurrentAhomeworkAassignment.AWhatAprecautionAcouldAhaveAsavedAyouAfromA aAdisastrouslyAbadAgradeAforAthisAassignment? A)ADefragmentAtheAhardAdrive. B)APurchaseAanAanti-virusAprogramAtoAremoveAtheAvirusAfromAyourAcomputer. C)AMakeAregularAbackupsAofAallAyourAimportantAfiles. D)APurchaseAanAextendedAwarrantyAforAyourAcomputer.
Ans:AC SectionARef:AProgrammingATipA1.1ABackupACopies Title:AWhatAcanApreventAyouAfromAlosingAfilesAthatAgetAcorrupted? Difficulty:AEasy 61.AWhichAoneAofAtheAfollowingAstatementsAregardingAbackupAstrategiesAforAJavaAfilesAisAcorrect? A)AYouAshouldAhaveAmultipleAcopiesAofAyourAsourceAfilesAinAdifferentAlocations. B)AYouAshouldAregularlyAprintAoutAyourAworkAsoAyouAcanAretypeAitAinAcaseAofAdataAloss. C)AYouAshouldAregularlyAbackAupAtheAJavaAvirtualAmachineAinstructionsAtoApreventAlossAofAvaluab leAwork. D)AYourAcompilerAautomaticallyAmakesAbackupsAofAyourAsourceAfiles.
Answer:Aa SectionAreferenceAProgrammingATipA1. Title:AWhichAoneAofAtheAfollowingAstatementsAregardingAbackupAstrategiesAforAJavaAfilesAisAcorrec t? Difficulty:AEasy
62.AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement:
System.out.println(“Hello!); A)AThereAisAaArun-timeAerror. B)AThereAareAnoAerrors. C)AThereAisAaAcompile-timeAerror. D)AThereAareAmultipleAerrors.
Answer:Ac SectionAreference:A1.6AErrors Title:AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement? Difficulty:AEasy
63.AAssumingAtheAprogrammerAwishesAtoAdisplayA“Hello!”AonAtheAscreen,AwhichAstatementAisAtru eAaboutAtheAfollowingAJavaAstatement:
System.out.println(“Helo!”); A)AThereAisAaArun-timeAerror.
B)AThereAareAnoAerrors. C)AThereAisAaAcompile-timeAerror. D)AThereAareAmultipleAerrors.
Answer:Aa SectionAreference:A1.6AErrors Title:AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement? Difficulty:AEasy
64.AAssumingAtheAprogrammerAwishesAtoAdisplayA“Hello!”AonAtheAscreen,AwhichAstatementAisAtru eAaboutAtheAfollowingAJavaAstatement:
System.out.println(“Hello!”); A)AThereAisAaArun-timeAerror. B)AThereAareAnoAerrors. C)AThereAisAaAcompile-timeAerror. D)AThereAareAmultipleAerrors.
Answer:Ab SectionAreference:A1.6AErrors Title:AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement? Difficulty:AEasy
65.AAssumingAtheAprogrammerAwishesAtoAdisplayA“Hello!”AonAtheAscreen,AwhichAstatementAisAtru eAaboutAtheAfollowingAJavaAstatement:
System.out.printn(“Helo!”); A)AThereAisAaArun-timeAerror. B)AThereAareAnoAerrors. C)AThereAisAaAcompile-timeAerror. D)AThereAareAmultipleAerrors.
Answer:Ad SectionAreference:A1.6AErrors Title:AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement? Difficulty:AEasy
66.AAssumeAthatAtheAfollowingAJavaAstatementAisAcontainedAinAtheAmainmethodAofAtheAclassAname dHello:
System.out.printLine(“Hello!”);
WhatAisAtheAnameAofAtheAfileAgeneratedAbyAtheAJavaAcompiler? A)AHello.java B)AHello
A)Atypo B)Arun-timeAerror C)Acompile-timeAerror D)AsyntaxAerror
Ans:AB SectionARef:ASectionA1.6AErrors Title:ATermAdescribingAanAerrorAcausingAaAprogramAtoAtakeAanAactionAthatAtheAprogrammerAdidAno tAintenD) Difficulty:AEasy
71.AWhatAisAanotherAtermAusedAtoAdescribeAanAerrorAcausingAaAprogramAtoAtakeAanAactionAthatAtheA programmerAdidAnotAintend? A)AsyntaxAerror B)AlogicAerror C)Amistake D)Acompile-timeAerror
Ans:AB SectionARef:ASectionA1.6AErrors Title:AAnotherAtermAdescribingAanAerrorAcausingAaAprogramAtoAtakeAanAactionAthatAtheAprogramme rAdidAnotAintenD) Difficulty:AEasy 72.AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement:
System.out.Println(“Welcome!”);
A)AThereAareAmultipleAerrors. B)AThereAareAnoAerrors. C)AThereAisAaArun-timeAerror. D)AThereAisAaAcompile-timeAerror.
Ans:AD SectionARef:ASectionA1.6AErrors Title:AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement? Difficulty:AEasy 73.AAssumingAtheAprogrammerAwishesAtoAoutputAtheAphraseA“Hello!”,AwhichAofAtheAfollowingAisAt rueAaboutAtheAfollowingAJavaAstatement.
System.out.println(“Welcme!”);
A)AThereAareAmultipleAerrors. B)AThereAisAaArun-timeAerror. C)AThereAareAnoAerrors. D)AThereAisAaAcompile-timeAerror.
Ans:AB SectionARef:ASectionA1.6AErrors Title:AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement? Difficulty:AEasy
74.AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement:
System.out.println(“Welcome!”);
A)AThereAareAnoAerrors. B)AThereAisAaArun-timeAerror. C)AThereAareAmultipleAerrors. D)AThereAisAaAcompile-timeAerror.
Ans:AA SectionARef:ASectionA1.6AErrors Title:AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement? Difficulty:AEasy 75.AAssumingAtheAprogrammerAwishesAtoAoutputAtheAphraseA“Welcome!”,AwhichAofAtheAfollowing AisAtrueAaboutAtheAfollowingAJavaAstatement.
System.out.Println(“Wlcome!”);
A)AThereAareAnoAerrors. B)AThereAisAaAcompile-timeAerror. C)AThereAisAaArun-timeAerror. D)AThereAareAmultipleAerrors.
Ans:AD SectionARef:ASectionA1.6AErrors Title:AWhichAstatementAisAtrueAaboutAtheAfollowingAJavaAstatement? Difficulty:AEasy
76.AAssumeAthatAtheAfollowingAJavaAstatementAisAcontainedAinAtheAmainAmethodAofAtheAclassAnam edAWelcome:
System.out.printLine(“Welcome!”);
WhatAisAtheAnameAofAtheAfileAgeneratedAbyAtheAJavaAcompiler?
A)AWelcome.class B)AWelcome.java C)ANoAfileAisAgeneratedAdueAtoAanAerror. D)AWelcome