True/False ___ 1. Source code can be read and modified by a programmer. ___ 2. Java is not case sensitive. ___ 3. Bytecode can only be executed by Java Virtual Machine.
- True/False
___ 1. Source code can be read and modified by a programmer.
___ 2. Java is not case sensitive.
___ 3. Bytecode can only be executed by Java Virtual Machine.
___ 4. Compilers can find not only syntax errors but also logical errors.
___ 5.Linker translates source code into object code.
___ 6. Java byte code can be opened and edited.
___ 7. Java
___ 8. Java program must be saved in a file with .java as the file name extension.
___ 9. Java virtual machine is different for different platforms.
___ 10. Java statement ends with a column.
___ 11. Java program must use the class name as its file name.
___ 12. Logical errors are the same as the run time errors.
___ 13. Java byte code is a binary code.
___ 14. A file with .class file name extension is Java’s byte code.
___ 15. A Java method can call other methods.
___ 16. Java compiler converts source code into byte code.
___ 17. Java program can use any file name extension as you would like.
___ 18. Both symbols // and /* and */ are Java comments.
___ 19. In Java, the expression x=x+2; is valid.
___ 20. The statement System.out.println(“\\\\\t\\\\”); will print the result: \\\\.
___ 21. Stepwise refinement technique should be used when you start learning how to write a Java program.
___ 22. Java comment symbols /* and */ can be nested in a Java program.
___ 23. Program header is important and should be included in every Java program you write.
___ 24. Java has a set of reserved words that cannot be used as identifiers.
___ 25. Double is a legitimate identifier.
___ 26. Java expression 10/4 evaluates to 2.5.
___ 27. Java compiler does not ignore white spaces such as spaces, tabs, or blank lines in a Java program.
___ 28. The same variable name(s) can be declared and used within different methods.
___ 29. In Java, 3*'b'+1 is a valid expression.
___30. In Java x++ is equivalent to x=x+1.
___ 31. In Java, int x=2.5; is a valid statement.
___ 32. The data type of the Java expression (int) 2.5 is double.
___ 33. Java source code must be saved in a file with the file name extension .class in order to run.
___ 34. In Java a real number such as 2.51 will be stored and used exactly as 2.51.
___ 35. In Java, 3+”abc”+2*3 is a valid statement.
Step by step
Solved in 4 steps