image

Solution of Assignment Synopsis & Project Dissertation Report


Note: ⇩    Fill the Name, Email and Mobile to get unlock the priclist...!!!!



Online-Typing-and-Filling

Title Name Amity Solved Assignment BSC IT 5th Sem for Java programming
University AMITY
Service Type Assignment
Course B.Sc-(IT)
Semester Semester-V Course: B.Sc-(IT)
Short Name or Subject Code Java programming
Commerce line item Type Semester-V Course: B.Sc-(IT)
Product Assignment of B.Sc-(IT) Semester-V (AMITY)
Price

PRICE INR

Click to View Price
Download Question File
Download Answer File 723859241586.docx (Purchase the product for download...!!!)

Questions:-


                                                                                                                    Java Programming

Assignment  A

  1. What is OOPs? What is the difference between Procedural and OOPs?

 

  1. A) Explain Inheritance, Polymorphism and Encapsulation?

       B) What do you mean by Final, finalize () and finally. Explain with examples?

  1. A) What are Checked and Unchecked Exception?

      B) What is the difference between declaring a variable and defining a variable?

  1. A) What is method overloading and overriding and State the difference between method overloading and overriding?

        B) What restriction are placed on method overriding.

  1. A) Does garbage collection guarantees that a program will not run out of memory?

      B) Why do we need wrapper classes?

  1. A) How can you achieve Multiple Inheritance in Java?

        b) What is the difference between StringBuffer and String class?

 

  1. A) What is a Java Package and how it is used?

       B) Can applets communicate with each other? Explain?

  1. What is the basic difference between the 2 approaches to exception handling.

1> try catch block and

2> specifying the candidate exceptions in the throws clause?

When should you use which approach?

 

 

 

 

ASSINGNMENT B

  1. Write a program using inheritance to create a class Room. The class should have parameters length and breadth. Further using method overloading create another room that takes x and y as arguments. Create a function to Area () to calculate area of room (length*breadth). Derive a class from Room called Room1. It has a 1 parameter height. Using method overloading create another room1 that takes x, y and z as arguments. Create a function Volume to calculate volume of room (length*breadth*height).

 

 

 

 

Assignment C

 

Question No.  1

What would be the results of compiling and running the following class. Select the one correct answer.

class test

{

 public static void main()

{

 System.out.println("test"); 

}

}

Options

  1. The program does not compile as there is no main method defined
  2. The program compiles and runs generating an output of "test"
  3. The program compiles and runs but does not generate any output
  4. The program compiles but does not run.

 

 

Question No.  2

Which of these are valid declarations for the main method? Select the one correct answer.

Options

  1. public void main();
  2. public static void main(String args[]);
  3. static public void main(String);
  4. public static void main(String );

 

 

 

Question No. 3 

Which of the following are valid declarations for the main method. Select the three correct answers

Options

  1. public static void main(String args[]);
  2. public static void main(String []args);
  3. final static public void main (String args[]);
  4. public static int main(String args[]);

 

 

Question No. 4

What happens when the following program is compiled and executed with the command - java

test. Select the one correct answer.

class test {

public static void main(String args[])

{ if(args.length > 0)

System.out.println(args.length); 

} }  

Options

  1. The program compiles and runs but does not print anything.
  2. The program compiles and runs and prints 0
  3. The program compiles and runs and prints 1
  4. The program compiles and runs and prints 2

 

 

Question No.   5

The signed right shift operator in Java is --. Select the one correct answer

Options

  1. <<;
  2. >>
  3. >>>;
  4. None of these.

 

 

Question No.  6

What gets printed on the standard output when the class below is compiled and executed. Select the one correct answer.

public class ShortCkt {

public static void main(String args[])

{ int i = 0; boolean

t = true; 

boolean f = false, b;

b = (t && ((i++) == 0));

b = (f && ((i+=2) > 0));

System.out.println(i); } }  

Options

  1. 0
  2. 1
  3. 2
  4. 3

 

 

Question No. 7 

What gets printed on the standard output when the class below is compiled and executed. Select the one correct answer. 

public class ShortCkt {

public static void main(String args[]) {

int i = 0; boolean

t = true; 

boolean f = false, b; 

b = (t || ((i++) == 0)); 

b = (f || ((i+=2) > 0)); 

System.out.println(i); } }

Options

  1. 0
  2. 1
  3. 2
  4. 3

 

 

Question No. 8 

What gets printed on the standard output when the class below is compiled and executed. Select the

One correct answer. public class ShortCkt { public static void main(String args[]) { int i = 0;

boolean t = true; boolean f = false, b; b = (t | ((i++) == 0)); b = (f | ((i+=2) > 0));

System.out.println(i); } }

Options

  1. 0
  2. 1
  3. 2
  4. 3

 

 

Question No. 9 

Which operator is used to perform bitwise inversion in Java. Select the one correct answer.

 Options

  1. ~
  2. !
  3. &
  4. |

 

 

 

Question No. 10 

A function is:

Options

  1. An entity that receives inputs and outputs
  2. A way of storing values
  3. A sequence of characters enclosed by quotes
  4. A kind of computer

 

 

 

Question No. 11 

The method setLabel can be used with what type of Object?

Options

  1. DoubleField
  2. int
  3. TextField
  4. String

 

 

 

Question No. 12 

What is the difference between a TextArea and a TextField?

Options

  1. A TextArea can handle multiple lines of text
  2. A textarea can be used for output
  3. TextArea is not a class
  4. TextAreas are used for displaying graphics

 

 

 

Question No.  13

How many types of comments are possible in java?

Options

  1. Two
  2. Three
  3. One
  4. None of these

 

 

 

Question No. 14 

Which of the following are valid variable names?

Options

  1. Catch
  2. Nocount
  3. Msisdn
  4. Switch

 

 

 

Question No. 15

A variable name:

Options

  1. Must not be a keyword in java.
  2. Must not being with a digit.
  3. Must not contain embedded space.
  4. Can contain characters from various alphabets, like Japanese, Greek & Cyrillic.

 

 

 

Question No. 16 

Java program are:-  

Options

  1. Platform dependent.
  2. Platform Independent.
  3. Portable
  4. Robust

 

 

 

Question No. 17  

The---------operator is used to create a class object.

Options

  1. Create
  2. Dot
  3. New
  4. None of these

 

 

 

Question No. 18

Which loop is called entry controlled loop

Options

  1. For loop
  2. While loop
  3. Do-while loop
  4. Repeat until loop

 

 

 

Question No.  19

Which of the following are comparison operators? 

Options

  1. = =
  2. !
  3. |
  4. != 

 

 

Question No. 20 

Switch (Expression) {

       Case value 1:

                      // Statement Sequence

                     Break;

       Case value 2:

                   // Statement Sequence

                   Break;

           -

           -

       Default:

 }

The expression must be of type—

Options

  1. Short
  2. Int
  3. Byte
  4. Char

 

 

 

Question No.  21

How do you declare an array?

Options

  1. Int []num;
  2. Int num[];
  3. Int num[]=new int[10];
  4. All of the above

 

 

 

Question No. 22 

A constructor has

Options

  1. Same names as that of the class
  2. Does not have a return type
  3. Can be called automatically when the object of a class is created
  4. All of the above 

 

 

Question No. 23 

The keyword super is used for calling

Options

  1. Derived class constructor
  2. Base class constructor
  3. Initializing the variable of a base class
  4. All of the above

 

 

 

Question No.  24

A constructor without any arguments/parameters is known as---------

Options

  1. Copy constructor
  2. Parameterized constructor
  3. Default constructor
  4. None of these

 

 

 

Question No.  25

A class declared as final cannot be

Options

  1. Inherited
  2. Overloaded
  3. Overridden
  4. All of the above

 

 

 

 

Question No.  26

Java handles exceptions the--------way

Options

  1. Procedural oriented
  2. Natural
  3. Object oriented
  4. None of the these

 

 

 

Question No. 27 

Which two classes are derived from Throwable Class?

Options

  1. Error & Exception
  2. Throw & Throws
  3. Try & Finally
  4. None of these

 

 

 

Question No.  28

In order to handle user defined exception which keyword is used

Options

  1. Throw
  2. Throws
  3. Throwable
  4. Finally

 

 

 

Question No. 29 

Java applications are run by using a

Options

  1. Java compiler
  2. Java interpreter
  3. Javac
  4. None of these

 

 

Question No. 30 

Which of the following are primitive data types?

Options

  1. Int
  2. Char
  3. Byte
  4. String

 

 

 

Question No. 31 

Which of the following methods are present in applet life cycle?

Options

  1. Main()
  2. Paint()
  3. Init()
  4. Start()

 

 

 

Question No. 32 

AWT stands for

Options

  1. Abstract Window Toolkit
  2. Abstract Window Toolpane
  3. Applet Window Toolkit
  4. Asynchronous Windowing Tool

 

 

 

Question No.  33

What are the components of an event?

Options

  1. Event handler
  2. Event object
  3. Event source
  4. None of these

 

 

 

Question No.  34

If no access specifier is specified before a class name or variable name or function name then which is the defaults specifier-----

Options

  1. Public
  2. Private
  3. Protected
  4. Default

 

 

 

Question No.  35

What is the size of the integer & character types in java?

Options

  1. 4 bytes & 2 bytes
  2. 2 bytes & 1 bytes
  3. 2 bytes & 2 bytes
  4. 4 bytes & 1 bytes

 

 

 

Question No. 36 

If we write final keyword infront of a function name then the function cannot be

Options

  1. Overloaded
  2. Overridden
  3. Inherited
  4. Abstract

 

 

 

Question No.  37

Two function are said to be overloaded if ---

Options

  1. It has the same name
  2. The return type many or may not be same
  3. Argument list must differ
  4. None of these

 

 

 

Question No. 38 

Which tool creates the C-header file

Options

  1. Javac
  2. Java
  3. Javah
  4. Jdb

 

 

 

Question No. 39  Solve by www.solvezone.in

CLASSPATH is ----

Options

  1. A keyword
  2. A variable name
  3. An environmental variable
  4. None of these

 

 

 

Question No. 40 

What is the difference between Switch & Statement & if –else

Options

  1. There is no difference
  2. Switch statement is used for checking all condition(i.e. equal to ,>&<) where as
  3. Switch statement only checks for equality condition where as if else is used for checking all type of condition.
  4. None of these

Note: ⇪    if you dont found your assignment question matched with the displayed question on our website, then you have to make payment , after making payment you would be able to found the same question as in your assignment...!!!!


Questions:-



Only after making the payment you would be able to see the answer...!!!

Review

Average user rating

4.8 / 5

Rating breakdown

5
80% Complete (danger)
1
4
80% Complete (danger)
1
3
80% Complete (danger)
0
2
80% Complete (danger)
0
1
80% Complete (danger)
0

January 29, 2015
This was nice in buy
Assignment from solve zone is probably one of the first preference of students.

January 29, 2015
This was nice in buy
Assignment from solve zone is probably one of the first preference of students.

17-Nov, 2018
This was nice in buy
Assignment from solve zone is probably one of the first preference of students.