Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Which of the following statements is true? a. Interpreted programs run faster

ID: 2248423 • Letter: 1

Question

1. Which of the following statements is true? a. Interpreted programs run faster than compiled programs. b. Compilers translate high-level language programs into machine language programs. c. Interpreter programs use assembly language as input. d. None of the above. 2. Java was originally developed for a. Operating systems development b. Intelligent consumer devices d. Distributed computing. 3. Which of the following statements about Java Class Libraries is false a. Java class libraries consist of classes that consist of methods that perform tasks. b. Java class libraries are also known as Java APIs (Application Programming Interfaces). e. An advantage testing new classes. d. Java class libraries are not portable of using Java class libraries is saving the effort of designing, developing and 4·The.class extension on a file means that the file: a. Contains java source code b. Contains HTML c. is produced by the Java compiler (javac). d. None of the above. executes a Java application. 5·The command a. run b. javac c. java d. None of the above 6. helps Internet-based applications perform like desktop applications. b. Blogging e. RSS d. Mashups 7. End-of-line comments that should be ignored by the compiler are denoted using a. Two forward slashes() b. Three forward slashes (W). c. A slash and a star( ). A slash and two starts ( /.. ). 8. Which of the following is not a valid Java identifier? a. my Value c, width 9. Which of the following cannot cause a syntax error to be reported by the Java compiler a. Mismatched b. Missing/in a comment that begins with c. Missing d. Extra blank lines

Explanation / Answer

1) all three a,b,c are true...........

2)b

java was developed for application orientation for satifying consumer devices

it is a plat form run easy programming

3)d

java class libraries are portable.....very easy to access

4)c

if java compiler produces any file the extension is .class

5)c

java-executes

javac-compiles

6) a

ajax is related to java to develop internet base applications

7)a

two forward slashes //

we also use /*fgdsuyfgsdfgdsfsdf*/

but not /*

8)a

space is not valid in java identifier

9)d

blank lines does not provide any error

10)c

we have to use ; not:

we have to use '' not '

if we take new line we have to write again syntan..other wise it shows error