Question
State whether the following statements are True or False. Write down the question number and the word True or False next to it. E.g. 2.21
State whether the following statements are True or False. Write down the question number and the word True or False next to it. E.g. 2.21 True 2.1 A computer can understand the Java programming language. 2.2 Comments are printed on the screen when the program is executed. 2.3 A variable cannot be accessed outside its scope. 2.4 Methods are one of the major structuring mechanisms for Java programs. 2.5 An algorithm is a plan for solving a problem by following a sequence of instructions. 2.6 Parameters are a way of making subprograms more generally applicable and useful. 2.7 A variable of type String is like a box in memory into which you can place Strings. 2.8 The value of the expression ( x = x) is true. 2.9 A non-terminating program is always a mistake. 2.10 The == operator can be used to see if two strings have the same characters. 2.11 JAVA is more similar to C++ that it is to Pascal. 2.12 JAVA programs are described as portable because they will fit into a small, lightweight disk. 2.13 It is important to test and evaluate a computer program. 2.14 The quotient / and the modulus % operators both do the same operation: divide a number. 2.15 The + operator has greater precedence that the * operator. 2.16 JOptionPane is a class which has methods for doing input and output operations. 2.17 The value of the expression 12 + 14 is 26. 2.18 You can write any program using sequence, selection and repetition. 2.19 The while loop test has the same type as the if-else statement test. 2.20 Sentinel loop control is appropriate where it is known in advance how many times the loop should iterate.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started