21 Jul 2014

Smu mba java and web design sample paper set four



4. Identify the modifier that can only reference the class that has defined it.
Public
Wrong
Package
Feedback:Not the right choice: The class, in which package modifier is defined, becomes the medium of its reference by only the same package but it is not only referring the class that has defined it.
Should have chosen
Private
Protected
5. The __________ statement is useful when we want to execute just some of the statements in a loop.
break
Should have chosen
continue
Wrong
return
Feedback:Not the right choice: Return is used for finally returning from a method, that is, it tells the Java interpreter to stop the execution of the current method and it is not used when we want to execute just some of the statements in a loop.
switch
6. The _____________ loop is the most flexible looping statement, used for the continuous execution of a piece of code until a specific condition is satisfied.
Wrong
While
Feedback:Not the right choice: The While loop is a looping statement, which frequently executes a block of statements as long as a condition remains true.
Should have chosen
For
Do-while
If
7. The___________ consists of a collection of comments, which include the program name, the author and some other details.
interface statement
Wrong
import statement
Feedback:Not the right choice: Import statement instruct the interpreter to load a particular class included in the given package but it is not consisting of a collection of comments, which include the program name, the author and some other details.
package statement
Should have chosen
section for documentation
Unit 11-2 Mark

1. State whether the following statements are true or false. 1. The path environment variable points to the location of the Java compiler and interpreter in your computer. 2. If you want to write a program in Java, you don't require compiler for the Java programming language.
1F, 2T
Should have chosen
1T, 2F
Wrong
1T, 2T
Feedback:Not the right choice: Statement 1 is true since the path environment variable points to the location of the Java compiler and interpreter in your computer. Statement 2 is false since if you want to write a program in Java, you firstly require a compiler for the Java programming language.
1F, 2F

2. Which of the following statements is True?
Final classes neither have final methods nor final variables.
A run-time error occurs if you use an abstract method in a normal class that is not abstract.
Should have chosen
Final class refers to a class with no subclasses.
Wrong
Methods are not the members of class.
Feedback:Not the right choice: Methods are members of a class.

3. Java makes distributed computing easy with the _____________capability that is naturally merged into it and it also allows you to create modular programs and ______________ which can be reused.
Networking, image
Multithreaded, image
Wrong
Multithreaded, code
Feedback:Not the right choice: Java makes distributed computing easy with the networking capability that is naturally merged into it and it also allows you to create modular programs and code which can be reused but multithreaded helps to run multiple processes on one computer not to the networking.
Should have chosen
Networking, code

Unit 10-4 Mark

1. Match the following:
Match
Correct Answer
User answer
Feedback
Firebug browser
It helps us to create CSS code.
It is used to enhance the text effects for your Website.
incorrect
Adobe flash
It helps to develop more sophisticated Web applications.
It offers features to create a CSS style sheet.
incorrect
Amaya
It offers features to create a CSS style sheet.
It helps to develop more sophisticated Web applications.
incorrect
Adobe Photoshop
It is used to enhance the text effects for your Website.
It helps us to create CSS code.
incorrect

2. Consider that you are working as a web developer in MP Technologies. Your company has celebrated its 10th year anniversary last month. Your manager wants to upload some of the photos that were taken during its First year anniversary. You found that some of the photos that were taken were torn out and not in a good condition. Now you have to give a good look to the photos so that both first and 10th anniversary photos look similar. Which of the following tools you would use to achieve the scenario?
Correct
Adobe Photoshop
Feedback:Right Choice: Adobe Photoshop is used to achieve the scenario since it can be used to correct any mistakes in the image.
Adobe flash
Text editor
Firebug browser

3. State whether the following statements are True or False. 1. Firebug browser provides facility to monitor network activities, which assists you in finding out why your Web page takes time to load in the browser.2. Firebug browser is very difficult to learn and it is not user friendly. 3. Firebug browser provides a powerful debugger that helps us to find errors if any in our JavaScript code 4. Firebug browser lets you make modifications to the code and see the output of the change instantly.
Wrong
1T, 2T, 3T, 4T
Feedback:Not the right choice: Statement 1 is true since firebug browser provides facility to monitor network activities, which assists you in finding out why your Web page takes time to load in the browser. Statement 2 is not true since firebug browser is very easy to learn the tool as it is user friendly. Statement 3 is true since firebug browser provides a powerful debugger that helps us to find errors if any in our JavaScript code. Statement 4 is true since firebug browser lets you make modifications to the code and see the output of the change instantly.
Should have chosen
1T, 2F, 3T, 4T
1T, 2T, 3F, 4T
1T, 2T, 3T, 4F
Unit 11-1 Mark
1. Identify the feature of Java that makes Java language portable.
Should have chosen
Platform independent
Wrong
Networking
Feedback:Not the right choice: Networking is the key feature of Java that helps to perform networking with very less effort but it does not make Java language portable.
Multithreaded
Simple
2. Identify the Java data type that is used for testing a specific condition during the execution of the program.
Should have chosen
Boolean
Wrong
Character
Feedback:Not the right choice: Character data type stores character constants in memory and it is not used for testing a specific condition during the execution of the program.
Integer
Floating-point
3. Identify the keyword which signals that the method does not return any value.
Wrong
Static
Feedback:Not the right choice: Static is a keyword which signals that the method used, is a class method and can be called without the need of creating an object of the class and it is not the keyword which signals that the method does not return any value.
Public
Should have chosen
Void
Class

No comments:

Post a Comment