Question: QUESTION 2 ( 2 0 Marks ) Determine if the following statements are True or False. Write down the question number and the correct answer

QUESTION 2(20 Marks) Determine if the following statements are True or False. Write down the question number and the correct answer next to it. E.g.2.21 True 2.1 It is important to test and evaluate a computer program. 2.2 Java is a high-level language. 2.3 Methods are one of the major structuring mechanisms for Java programs. 2.4 The Java compiler translates Java programs into machine language programs. 2.5 Pseudocode is a mixture of English and a programming language. 2.6 The computer will not print an error message when a logic error occurs. 2.7 System.out is an example of a method. 2.8 An upper-case letter is considered to be the same character as a lower-case letter in Java. 2.9 The boolean type has only two values. 2.10 Every statement with if must also include else. 2.11 The == operator can be used to see if two strings have the same characters. 2.12 The body of any while loop will be executed at least once. 2.13 JOptionPane is a class which allows us to display a message dialog box. 2.14 Comments are printed on the screen when the program is executed. 2.15 Some programs never halt. 2.16 A method cannot make changes to its formal parameters. 2.17 Variables should always be declared as locally as possible. 2.18 A computer is a general-purpose device that behaves according to the sets of instructions and data it is provided with. 2.19 When it is not known in advance how many times a set of statements will be repeated, a counter value can be used to terminate the repetition. 2.20 The Java API is a useful collection of classes that you may use in your programs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!