SlideShare a Scribd company logo
Chapter 1 Introduction to Computers, Programs, and Java 1. A Java program with more than one
class will run. a. True b. False 2. A Java program can have more than one class but all the classes
must be public. a. True b. False 3. Considering the program code below. What possible class or
classes will be created when the program is compiled? a. class A only b. classes A and C c.
classes A , B and C d. There will be a compilation error because class C is declared public 4. the
following words to the best appropriate description. Words: a) Dial-up Modem b) DSL c) Cable
Modem d) NIC e) LAN stands for Network Interface Card, which is a device that connects the
computer to the Internet. stands for Local Area Network, which connects computers within a
limited area such as a school, a home, or an office. uses a phone line to dial a phone number to
connect to the Internet. stands for Digital Subscriber Line that directly connects a computer to
the Internet through a phone without having to dial up a number. uses a cable TV line to connect
to the Internet. 5. Which of these components interconnects computer subsystems? a. Bus b.
Keyboard c. Data d. Network Cable 6. Identify the items that are intangible parts of the computer
system. a. Motherboard b. Disk c. Operating system d. Application program 7. The unit that
coordinates the actions of other units of the computer is a. Control unit b. Arithmetic unit c.
Logic unit d. Peripheral unit 8. is the brain of a computer. a. Hardware b. CPU c. Memory d.
Disk 9. The intermediate code from JVM is called a. Byte code b. Bit code c. Machine code d.
Assembly code 10. Java use the following translator in executing translating its source code to
object code. a. Compiler and Interpreter b. Compiler only c. Interpreter only d. Assembler only
11. Match the following words to its best description Word: a) Machine Language b) Assembly
Language c) High-Level Language d) Source Code e) Interpreter f) Assembler g) Compiler is
English-like, easy to learn and use. uses short descriptive word to represent each of the machine-
language instructions. is computer's native language. translates the entire source code into a
machine-code file. processes one statement at a time, translates it to the machine code, and
executes it. is a program written in a high-level programming language. is a program that
translates assembly-language code into machine code. 12. The speed of the CPU may be
measured in a. megabytes b. gigabytes c. megahertz d. gigahertz 13. Why do computers use
zeros and ones? a. because combinations of zeros and ones can represent any numbers and
characters. b. because digital devices have two stable states and it is natural to use one state for 0
and the other for 1 . c. because binary numbers are simplest. d. because binary numbers are the
bases upon which all other number 14. Two byte has bits. a. 4 b. 8 c. 12 d. 16 15. One gigabyte is
approximately bytes. a. 1 million b. 10 million c. 1 billion d. 1 trillion 16. A program and its data
must be moved into the computer's before they can be executed by the CPU. a. memory b. hard
disk c. CP U d. CD-ROM 17. A computer's is volatile; that is, any information stored in it is lost
when the system's power is turned off. a. Memory b. hard disk c. flash stick d. CD-ROM 18.
Which of the following are storage devices? a. portable disk b. hard disk c. flash stick d. CD-
ROM 19. The specifies the number of pixels in horizontal and vertical dimensions of the display
device. a. screen resolution b. pixel c. dot pitch d. monitor 20. is a device to connect a computer
to a local area network (LAN). a. Regular modem b. DSL c. Cable modem d. NIC 21. are
instructions to the computer. a. Hardware b. Software c. Programs d. Keyboards 22. Computer
can execute the code in a. machine language b. assembly language c. high-level language d. none
of the above 23. translates high-level language program into machine language program. a. An
assembler b. A compiler c. CP U 23. is an operating system. a. Java b. C + + c. Windows d.
Visual Basic e. Ada 24. is a program that runs on a computer to manage and control a computer's
activities. a. Operating system b. Java c. Modem d. Interpreter e. Compiler 25. Due to security
reasons, Java cannot run from a Web browser in the new version of Java. a. Applications b.
Applets c. Servlets d. Micro Edition programs 26. is not an object-oriented programming
language. a. Java b. C + + c. C d. CH e. Python 27. is interpreted. a. Java b. C + + c. C d. Ada e.
Pascal 28. is architecture-neutral. a. Java b. C + + c. C d. Ada e. Pascal 29. is a technical
definition of the language that includes the syntax and semantics of the Java programming. a.
Java language specification b. Java API c. Java JDK d. Java IDE 30. contains predefined classes
and interfaces for developing Java programs. a. dava language specification b. Java A P 1 c. Java
JDK d. Java IDE 31. consists of a set of separate programs for developing and testing Java
programs, each of which is invoked from a command line. a. Java language specification b. Java
A P I c. Java JDK d. Java IDE 32. _provides an integrated development environment (IDE) for
rapidly developing Java programs. a. Java language specification b. Java API c. Java JDK d. Java
IDE 33. The main method header is written as: 3. public static void main(string[] args) b. public
static void Main(String[] args) c. public static void main(String[] args) d. public static
main(String[] args) e. public void main(String[] args) 34. Which of the following statements is
correct? a. Every line in a program must end with a semicolon. b. Every statement in a program
must end with a semicolon. c. Every comment line must end with a semicolon. d. Every method
must end with a semicolon. e. Every class must end with a semicolon. 35. Which of the
following statements is correct to display Welcome to Java on the console? a.
System.out.println("Welcome to Java"); b. System.out.println("Welcome to Java"); c.
System.println("Welcome to Java"): d. System.out.println("Welcome to Java"'); e.
System.out.println("Welcome to ava"); 36. The JDK command to just compile a class (not run)
in the file Test.java is a. java Test b. java Test.java c. javac Test.java d. javac Test e. JAVAC
Test.java 37. Which JDK command is correct to run a Java application in ByteCode.class? a.
java ByteCode b. java ByteCode.class c. javac ByteCode.java d. javac ByteCode e. JAVAC
ByteCode 38. Java compiler translates Java source code into a. Java bytecode b. machine code c.
assembly code d. another high-level language code 39. is a software that interprets Java
bytecode. a. Java virtual machine b. Java compiler c. Java debugger d. Java API 40. Suppose you
define a Java class as follows, the source code should be stored in a file named public class Test
{ } a. Test.class b. Test.doc c. Test.txt d. Test.java e. Any name with extension .java 41. The
extension name of a Java bytecode file is a. java b. .obj c. class d. exe 42. The extension name of
a Java source code file is a. .java b. .obj c. class d. exe 43. Which of the following lines is not a
Java comment? a. / comments / b. // comments c. - comments d. / / comments / e. ** comments
44. Which of the following are the reserved words? a. Public b. Static c. Void d. class 45. Every
statement in Java ends with a. a semicolon (i) b. a comma (,) c. a period (.) d. an asterisk ( ) 46. A
block is enclosed inside a. Parentheses b. Braces c. Brackets d. Quotes 47. Programming style is
important, because a. a program may not compile if it has a bad style b. good programming style
can make a program run faster c. good programming style makes a program more readable d.
good programming style helps reduce programming errors 48. Analyze the following code. I:
public class Test { public static void main(String[] args) { System.out.println("Welcome to
Java!"); } } II: public class Test { public static void main(String[] args) {
System.out.printIn("Welcome to Java!"); }} a. Both I and II can compile and run and display
Welcome to Java, but the code in II has a better style than I. b. Only the code in I can compile
and run and display Welcome to Java. c. Only the code in II can compile and run and display
Welcome to Java. d. Both I and II can compile and run and display Welcome to Java, but the
code in I has a better style than II. Key:d Both I and II are the same except the format is
different. Format is a readability issue only. 49. Which of the following code has the best style?
I: public class Test { public static void main(String[] args) { System.out.println("Welcome to
Java!"); } } II: public class Test { public static void main(String[] args) {
System.out.println("Welcome to Java!"); } } III: public class Test { public static void
main(String[] args) { System.out.println("Welcome to Java!"); } } IV: public class Test {
public static void main(String[] args) { System.out.println("Welcome to Java!"); } } a. 1 b. II
c. III d. IV 50. If a program compiles fine, but it produces incorrect result, then the program
suffers a. a compile error b. a runtime error c. a logic error 51. If you forget to put a closing
quotation mark on a string, what kind of error will be raised? a. a compile error b. a runtime error
c. a logic error

More Related Content

PDF
Java Programming.pdf
PDF
Test Bank For Big Java: Early Objects 5th Edition
PPTX
Std 12 chapter 7 Java Basics Important MCQs
PPTX
Basics of C Lecture 2[16097].pptx
PDF
Test Bank for Java Software Solutions 7th Edition (International Edition). Jo...
DOCX
Lecture19.07.2014
PDF
Compiler Design Quiz
PPT
C#.NET
Java Programming.pdf
Test Bank For Big Java: Early Objects 5th Edition
Std 12 chapter 7 Java Basics Important MCQs
Basics of C Lecture 2[16097].pptx
Test Bank for Java Software Solutions 7th Edition (International Edition). Jo...
Lecture19.07.2014
Compiler Design Quiz
C#.NET

Similar to Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf (20)

PDF
Test Bank for C How to Program 7th Edition by Deitel ISBN 9789332555310 97801...
PPTX
Unit 1 of c++ part 1 basic introduction
PPTX
C# lecture 1: Introduction to Dot Net Framework
PDF
Test Bank for C How to Program 7th Edition by Deitel ISBN 9789332555310 97801...
PPTX
CSE 116 OOP Educational Materials of United International University
PDF
Hands-On Ethical Hacking and Network Defense 1st Edition Simpson Test Bank
PDF
DRDO Previous Year Computer Question (1000 MCQ)
PDF
C sharp chap1
PDF
SBI IT (Systems) Assistant Manager Question Paper
DOC
Mock test rad 2
DOC
Mcq+questions+cxc+it
PDF
Test Bank for Starting out with Visual C#, 5th Edition, Tony Gaddis
PDF
C++ How to Program 10th Edition Deitel Test Bank
PDF
Problem Solving Techniques Multiple Choice Question
PDF
ITI COPA Java MCQ important Questions and Answers
DOCX
Bit%20 ch02
PDF
Test Bank for Starting out with Visual C#, 5th Edition, Tony Gaddis
PDF
C++ How to Program 10th Edition Deitel Test Bank
PPTX
Introduction-to-C-Part-1.pptx
PPTX
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Test Bank for C How to Program 7th Edition by Deitel ISBN 9789332555310 97801...
Unit 1 of c++ part 1 basic introduction
C# lecture 1: Introduction to Dot Net Framework
Test Bank for C How to Program 7th Edition by Deitel ISBN 9789332555310 97801...
CSE 116 OOP Educational Materials of United International University
Hands-On Ethical Hacking and Network Defense 1st Edition Simpson Test Bank
DRDO Previous Year Computer Question (1000 MCQ)
C sharp chap1
SBI IT (Systems) Assistant Manager Question Paper
Mock test rad 2
Mcq+questions+cxc+it
Test Bank for Starting out with Visual C#, 5th Edition, Tony Gaddis
C++ How to Program 10th Edition Deitel Test Bank
Problem Solving Techniques Multiple Choice Question
ITI COPA Java MCQ important Questions and Answers
Bit%20 ch02
Test Bank for Starting out with Visual C#, 5th Edition, Tony Gaddis
C++ How to Program 10th Edition Deitel Test Bank
Introduction-to-C-Part-1.pptx
Introduction-to-C-Part-1 JSAHSHAHSJAHSJAHSJHASJ
Ad

More from akknit (20)

PDF
Case study- A number of people- including children- became ill several.pdf
PDF
Case Study- Amanda Tremblay at Citrine Software Solutions (HBS) A- Ide.pdf
PDF
CASE STUDY The graduate admissions process at begins with an applicant.pdf
PDF
Case study Read the following case study and write your report about t.pdf
PDF
Case Study 2 mon the falt and identified as high risk for falls due to.pdf
PDF
CASE STUDY -70- A 27-year-old black male construction worker suddenly.pdf
PDF
Carlos Cantu- a food scientist at the International Kitchens Corporati.pdf
PDF
CASE 6-6 Bill DeBurger- ln-Charge AccountantBuestions- inientory tieno.pdf
PDF
Carmen Communications reported the following figures from its adjusted.pdf
PDF
Carrboro has three equal-sized groups of people- (1) Type A people con.pdf
PDF
Chemolithotrophs use the same chemical for their PED- energy source an.pdf
PDF
Check Your Recall Question 7-5 Homework - Answered - Due Mar 2nd- 12-0.pdf
PDF
Check the countries whose economies are best described as -mixed-- com (1).pdf
PDF
check both answers please During DNA synthesis- the lagging strand is.pdf
PDF
Characteristics of nonculture techniques include (Select all that appl.pdf
PDF
Chapter Review Questions 2- A person who is supine is motinucicated- a.pdf
PDF
Chapter 7- Closing Case- Boeing and Airbus Are in a Dogfight over Ille.pdf
PDF
CASE FILE Gas Gangrene A 77-year-old male resident of southern Colorad.pdf
PDF
Case Studies- Case 1- A sexually active college student went to her OB.pdf
PDF
Case History- Tracking a -Patchwork Quilt- Pathogen Nine-month-old Eva.pdf
Case study- A number of people- including children- became ill several.pdf
Case Study- Amanda Tremblay at Citrine Software Solutions (HBS) A- Ide.pdf
CASE STUDY The graduate admissions process at begins with an applicant.pdf
Case study Read the following case study and write your report about t.pdf
Case Study 2 mon the falt and identified as high risk for falls due to.pdf
CASE STUDY -70- A 27-year-old black male construction worker suddenly.pdf
Carlos Cantu- a food scientist at the International Kitchens Corporati.pdf
CASE 6-6 Bill DeBurger- ln-Charge AccountantBuestions- inientory tieno.pdf
Carmen Communications reported the following figures from its adjusted.pdf
Carrboro has three equal-sized groups of people- (1) Type A people con.pdf
Chemolithotrophs use the same chemical for their PED- energy source an.pdf
Check Your Recall Question 7-5 Homework - Answered - Due Mar 2nd- 12-0.pdf
Check the countries whose economies are best described as -mixed-- com (1).pdf
check both answers please During DNA synthesis- the lagging strand is.pdf
Characteristics of nonculture techniques include (Select all that appl.pdf
Chapter Review Questions 2- A person who is supine is motinucicated- a.pdf
Chapter 7- Closing Case- Boeing and Airbus Are in a Dogfight over Ille.pdf
CASE FILE Gas Gangrene A 77-year-old male resident of southern Colorad.pdf
Case Studies- Case 1- A sexually active college student went to her OB.pdf
Case History- Tracking a -Patchwork Quilt- Pathogen Nine-month-old Eva.pdf
Ad

Recently uploaded (20)

PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
Indian roads congress 037 - 2012 Flexible pavement
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Classroom Observation Tools for Teachers
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
Empowerment Technology for Senior High School Guide
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
RMMM.pdf make it easy to upload and study
Indian roads congress 037 - 2012 Flexible pavement
Final Presentation General Medicine 03-08-2024.pptx
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Orientation - ARALprogram of Deped to the Parents.pptx
Computing-Curriculum for Schools in Ghana
A systematic review of self-coping strategies used by university students to ...
History, Philosophy and sociology of education (1).pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
LDMMIA Reiki Yoga Finals Review Spring Summer
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Classroom Observation Tools for Teachers
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Unit 4 Skeletal System.ppt.pptxopresentatiom
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Empowerment Technology for Senior High School Guide

Chapter 1 Introduction to Computers- Programs- and Java 1- A Java prog.pdf

  • 1. Chapter 1 Introduction to Computers, Programs, and Java 1. A Java program with more than one class will run. a. True b. False 2. A Java program can have more than one class but all the classes must be public. a. True b. False 3. Considering the program code below. What possible class or classes will be created when the program is compiled? a. class A only b. classes A and C c. classes A , B and C d. There will be a compilation error because class C is declared public 4. the following words to the best appropriate description. Words: a) Dial-up Modem b) DSL c) Cable Modem d) NIC e) LAN stands for Network Interface Card, which is a device that connects the computer to the Internet. stands for Local Area Network, which connects computers within a limited area such as a school, a home, or an office. uses a phone line to dial a phone number to connect to the Internet. stands for Digital Subscriber Line that directly connects a computer to the Internet through a phone without having to dial up a number. uses a cable TV line to connect to the Internet. 5. Which of these components interconnects computer subsystems? a. Bus b. Keyboard c. Data d. Network Cable 6. Identify the items that are intangible parts of the computer system. a. Motherboard b. Disk c. Operating system d. Application program 7. The unit that coordinates the actions of other units of the computer is a. Control unit b. Arithmetic unit c. Logic unit d. Peripheral unit 8. is the brain of a computer. a. Hardware b. CPU c. Memory d. Disk 9. The intermediate code from JVM is called a. Byte code b. Bit code c. Machine code d. Assembly code 10. Java use the following translator in executing translating its source code to object code. a. Compiler and Interpreter b. Compiler only c. Interpreter only d. Assembler only 11. Match the following words to its best description Word: a) Machine Language b) Assembly Language c) High-Level Language d) Source Code e) Interpreter f) Assembler g) Compiler is English-like, easy to learn and use. uses short descriptive word to represent each of the machine- language instructions. is computer's native language. translates the entire source code into a machine-code file. processes one statement at a time, translates it to the machine code, and executes it. is a program written in a high-level programming language. is a program that translates assembly-language code into machine code. 12. The speed of the CPU may be measured in a. megabytes b. gigabytes c. megahertz d. gigahertz 13. Why do computers use zeros and ones? a. because combinations of zeros and ones can represent any numbers and characters. b. because digital devices have two stable states and it is natural to use one state for 0 and the other for 1 . c. because binary numbers are simplest. d. because binary numbers are the bases upon which all other number 14. Two byte has bits. a. 4 b. 8 c. 12 d. 16 15. One gigabyte is approximately bytes. a. 1 million b. 10 million c. 1 billion d. 1 trillion 16. A program and its data must be moved into the computer's before they can be executed by the CPU. a. memory b. hard disk c. CP U d. CD-ROM 17. A computer's is volatile; that is, any information stored in it is lost when the system's power is turned off. a. Memory b. hard disk c. flash stick d. CD-ROM 18. Which of the following are storage devices? a. portable disk b. hard disk c. flash stick d. CD- ROM 19. The specifies the number of pixels in horizontal and vertical dimensions of the display device. a. screen resolution b. pixel c. dot pitch d. monitor 20. is a device to connect a computer to a local area network (LAN). a. Regular modem b. DSL c. Cable modem d. NIC 21. are instructions to the computer. a. Hardware b. Software c. Programs d. Keyboards 22. Computer can execute the code in a. machine language b. assembly language c. high-level language d. none of the above 23. translates high-level language program into machine language program. a. An assembler b. A compiler c. CP U 23. is an operating system. a. Java b. C + + c. Windows d. Visual Basic e. Ada 24. is a program that runs on a computer to manage and control a computer's activities. a. Operating system b. Java c. Modem d. Interpreter e. Compiler 25. Due to security reasons, Java cannot run from a Web browser in the new version of Java. a. Applications b.
  • 2. Applets c. Servlets d. Micro Edition programs 26. is not an object-oriented programming language. a. Java b. C + + c. C d. CH e. Python 27. is interpreted. a. Java b. C + + c. C d. Ada e. Pascal 28. is architecture-neutral. a. Java b. C + + c. C d. Ada e. Pascal 29. is a technical definition of the language that includes the syntax and semantics of the Java programming. a. Java language specification b. Java API c. Java JDK d. Java IDE 30. contains predefined classes and interfaces for developing Java programs. a. dava language specification b. Java A P 1 c. Java JDK d. Java IDE 31. consists of a set of separate programs for developing and testing Java programs, each of which is invoked from a command line. a. Java language specification b. Java A P I c. Java JDK d. Java IDE 32. _provides an integrated development environment (IDE) for rapidly developing Java programs. a. Java language specification b. Java API c. Java JDK d. Java IDE 33. The main method header is written as: 3. public static void main(string[] args) b. public static void Main(String[] args) c. public static void main(String[] args) d. public static main(String[] args) e. public void main(String[] args) 34. Which of the following statements is correct? a. Every line in a program must end with a semicolon. b. Every statement in a program must end with a semicolon. c. Every comment line must end with a semicolon. d. Every method must end with a semicolon. e. Every class must end with a semicolon. 35. Which of the following statements is correct to display Welcome to Java on the console? a. System.out.println("Welcome to Java"); b. System.out.println("Welcome to Java"); c. System.println("Welcome to Java"): d. System.out.println("Welcome to Java"'); e. System.out.println("Welcome to ava"); 36. The JDK command to just compile a class (not run) in the file Test.java is a. java Test b. java Test.java c. javac Test.java d. javac Test e. JAVAC Test.java 37. Which JDK command is correct to run a Java application in ByteCode.class? a. java ByteCode b. java ByteCode.class c. javac ByteCode.java d. javac ByteCode e. JAVAC ByteCode 38. Java compiler translates Java source code into a. Java bytecode b. machine code c. assembly code d. another high-level language code 39. is a software that interprets Java bytecode. a. Java virtual machine b. Java compiler c. Java debugger d. Java API 40. Suppose you define a Java class as follows, the source code should be stored in a file named public class Test { } a. Test.class b. Test.doc c. Test.txt d. Test.java e. Any name with extension .java 41. The extension name of a Java bytecode file is a. java b. .obj c. class d. exe 42. The extension name of a Java source code file is a. .java b. .obj c. class d. exe 43. Which of the following lines is not a Java comment? a. / comments / b. // comments c. - comments d. / / comments / e. ** comments 44. Which of the following are the reserved words? a. Public b. Static c. Void d. class 45. Every statement in Java ends with a. a semicolon (i) b. a comma (,) c. a period (.) d. an asterisk ( ) 46. A block is enclosed inside a. Parentheses b. Braces c. Brackets d. Quotes 47. Programming style is important, because a. a program may not compile if it has a bad style b. good programming style can make a program run faster c. good programming style makes a program more readable d. good programming style helps reduce programming errors 48. Analyze the following code. I: public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } II: public class Test { public static void main(String[] args) { System.out.printIn("Welcome to Java!"); }} a. Both I and II can compile and run and display Welcome to Java, but the code in II has a better style than I. b. Only the code in I can compile and run and display Welcome to Java. c. Only the code in II can compile and run and display Welcome to Java. d. Both I and II can compile and run and display Welcome to Java, but the code in I has a better style than II. Key:d Both I and II are the same except the format is different. Format is a readability issue only. 49. Which of the following code has the best style? I: public class Test { public static void main(String[] args) { System.out.println("Welcome to
  • 3. Java!"); } } II: public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } III: public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } IV: public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } a. 1 b. II c. III d. IV 50. If a program compiles fine, but it produces incorrect result, then the program suffers a. a compile error b. a runtime error c. a logic error 51. If you forget to put a closing quotation mark on a string, what kind of error will be raised? a. a compile error b. a runtime error c. a logic error