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 Java Programming Solved Assignment for Amity better grades and marks in Delhi Noida Mumbai Faridabad and Ghaziabad India
University AMITY
Service Type Assignment
Course B.C.A
Semester Semester-V Course: B.C.A
Session
Short Name or Subject Code Java Programming
Commerce line item Type Semester-V Course: B.C.A
Product Assignment of B.C.A Semester-V (AMITY)
Price

PRICE INR

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

Questions:-


Java Programming

Assignment A

 

  1. What are the most important features of Java? How does Java achieve platform independence?

Answer:-

  1. a) What are native methods? How do you use them?

Answer:-

  1. b) What are wrapper classes? Why are they used?

Answer:-

  1. Explain the concept of method overriding. Can we over-ride method within the same class? Explain.

Answer:-

  1. What is a static method? Why can’t a static method use ‘this’ and ‘super’? Explain with example.

Answer: -

  1. a) State the significance of public, private, protected, default modifiers

Answer:-

  1. b) What are different types of inner classes?

Answer:-

  1. a) How does exception-handling work in Java?

Answer:-

  1. b) Why Java doesn´t support multiple inheritances?

Answer:-

  1. Explain the concept of interface. What is scope and nature of variables and methods defined in an interface?

Answer:-

  1. Explain the event delegation models in AWT. What are the components of an event?

Answer:-

Assignment B

Case Detail:

Read the following and create appropriate java applets.

  1. a) Create a try block that is likely to generate two types of exception and then incorporate necessary catch block to handle them appropriately
  2. b) Create a java applet with a button “Display”. On click of button it should display Rectangle, Oval and Circle within the Applet.
  3. c) Create the following form in Java:-

Questions       

  1. Subject should display name of subjects: - C++, VB and Java

Answer:-

  1. Foreign language should display choice of foreign languages French, German and Japanese.

Answer:-

  1. Submit button should submit the result.

Answer:-

Assignment C

Question No.  1           Marks - 10

Which of these operators is used to allocate memory to array variable in Java?      

Options          

  1. malloc
  2. alloc
  3. new
  4. new malloc

Question No.  2           Marks - 10

Which of these is an incorrect array declaration?     

Options          

  1. int arr[] = new int[5]
  2. int [] arr = new int[5]
  3. int arr[] arr = new int[5]
  4. int arr[] = int [5] new

Question No.  3           Marks - 10

What will this code print? int arr[] = new int [5]; System.out.print(arr);      

Options          

  1. 0
  2. value stored in arr[0].
  3. 0
  4. Garbage value

Question No.  4           Marks - 10

Which of these is an incorrect Statement?    

Options          

It is necessary to use new operator to initialize an array.

Array can be initialized using comma separated expressions surrounded by curly braces.  

Array can be initialized when they are declared.      

None of these

Question No.  5           Marks - 10

What is the range of data type byte in Java? 

Options          

  1. -128 to 127
  2. -32768 to 32767
  3. -2147483648 to 2147483647
  4. 127 to -133

Question No.  6           Marks - 10

An expression involving byte, int, and literal numbers is promoted to which of these?      

Options          

  1. int
  2. long
  3. byte
  4. float

Question No.  7           Marks - 10

Which of these literals can be contained in a data type float variable?         

Options          

  1. 7e -308
  2. 4e -038
  3. 7e+308
  4. 4e -050

Question No.  8           Marks - 10

Which data type value is returned by all transcendental math functions?    

Options          

  1. int
  2. float
  3. double
  4. long

Question No.  9           Marks - 10

Which of these is data type long literal?        

Options          

  1. 0x99fffL
  2. ABCDEFG
  3. 0x99fffa
  4. 99671246

Question No.  10         Marks - 10

Which of these can be returned by the operator &?  

Options          

  1. Integer
  2. Boolean
  3. Character
  4. Integer or Boolean

Question No.  11         Marks - 10

Literals in java must be preceded by which of these?           

Options          

  1. L
  2. l
  3. D
  4. L and I

Solve by www.solvezone.in contact for more details at 8882309876

Question No.  12         Marks - 10

Which of these cannot be used for a variable name in Java?

Options          

  1. identifier
  2. keyword
  3. identifier & keyword
  4. None of these

Question No.  13         Marks - 10

Which of these are selection statements in Java?      

Options          

  1. if()
  2. for()
  3. continue
  4. break

Question No.  14         Marks - 10

Which of these jump statements can skip processing remainder of code in its body for a particular iteration?           

 Options         

  1. break
  2. return
  3. exit
  4. continue

Question No.  15         Marks - 10

Which of the following can be operands of arithmetic operators?    

 Options         

  1. Numeric
  2. Boolean
  3. Characters
  4. Both Numeric & Characters

Question No.  16         Marks - 10

Decrement operator – decreases value of variable by what number?           

 Options         

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

Question No.  17         Marks - 10

What is the process of defining more than one method in a class differentiated by method signature?       

 Options         

  1. Function overriding
  2. Function overloading
  3. Function doubling
  4. None of these

Question No.  18         Marks - 10

Which of the following is a method having same name as that of its class? 

Options          

  1. finalize
  2. delete
  3. class
  4. constructor

Question No.  19         Marks - 10

Which method can be defined only once in a program?       

Options          

  1. main method
  2. finalize method
  3. static method
  4. private method

Question No.  20         Marks - 10

Which of these statement is incorrect?          

Options          

  1. All object of a class are allotted memory for the all the variables defined in the class.
  2. If a function is defined public it can be accessed by object of other class by inheritation.
  3. main() method must be made public.
  4. All object of a class are allotted memory for the methods defined in the class.

Question No.  21         Marks - 10

Which of this keyword must be used to inherit a class?        

Options          

  1. super
  2. this
  3. extent
  4. extends

Question No.  22         Marks - 10

Which of these keywords is used to refer to member of base class from a sub class?          

Options          

  1. upper
  2. super
  3. this
  4. lower

Question No.  23         Marks - 10

A class member declared protected becomes member of subclass of which type?  

Options          

  1. public member
  2. private member
  3. protected member
  4. static member

Question No.  24         Marks - 10

Which of these is correct way of inheriting class A by class B?       

Options          

  1. class B + class A {}
  2. class B inherits class A {}
  3. class B extends A {}
  4. class B extends class A {}

Question No.  25         Marks - 10

Which of the following statements are incorrect?     

Options          

  1. public members of class can be accessed by any code in the program.
  2. private members of class can only be accessed by other members of the class.
  3. private members of class can be inherited by a sub class, and become protected members in sub class.
  4. protected members of a class can be inherited by a sub class, and become private members of the sub class.

Question No.  26         Marks - 10

Which of these keywords is used to define packages in Java?          

Options          

  1. pkg
  2. Pkg
  3. package
  4. Package

Question No.  27         Marks - 10

Which of these is a mechanism for naming and visibility control of a class and its content

Options          

  1. Object
  2. Packages
  3. Interfaces
  4. Exception Handling,

Question No.  28         Marks - 10

Which of these access specifiers can be used for a class so that it’s members can be accessed by a different class in the different package?       

Options          

  1. Public
  2. Protected
  3. Private
  4. No Modifier

Question No.  29         Marks - 10

Which of the following is correct way of importing an entire package ‘pkg’?         

Options          

  1. import pkg.
  2. Import pkg.
  3. import pkg.*
  4. Import pkg.*

Question No.  30         Marks - 10

Which of the following is incorrect statement about packages?       

Options          

  1. Package defines a namespace in which classes are stored.
  2. A package can contain other package within it.
  3. Java uses file system directories to store packages.
  4. A package can be renamed without renaming the directory in which the classes are stored.

Question No.  31         Marks - 10

Which of these keywords must be used to handle the exception thrown by try block in some rational manner?           

Options          

  1. try
  2. finally
  3. throw
  4. catch

Question No.  32         Marks - 10

Which of these packages contains all the classes and methods required for even handling in Java?           

Options          

  1. applet
  2. awt
  3. event
  4. awt.event

Question No.  33         Marks - 10

Which of these classes is super class of all the events?        

Options          

  1. Event Object
  2. Event Class
  3. Action Event
  4. Item Event

Question No.  34         Marks - 10

Which of these events will be generated if we close an applet’s window?  

Options          

  1. ActionEvent
  2. ComponentEvent
  3. AdjustmentEvent
  4. WindowEvent

Question No.  35         Marks - 10

Which of these is a protocol for breaking and sending packets to an address across a network?    

  1. TCIP/IP
  2. DNS
  3. Socket
  4. Proxy Server

Question No.  36         Marks - 10

How many ports of TCP/IP are reserved for specific protocols?      

Options          

  1. 10
  2. 1024
  3. 2048
  4. 512

Question No.  37         Marks - 10

Which of these is a full form of DNS?          

Options          

  1. Data Network Service
  2. Data Name Service
  3. Domain Network Service
  4. Domain Name Service

Question No.  38         Marks - 10

Which of these classes is used to encapsulate IP address and DNS?

Options          

  1. Datagram Packet
  2. URL
  3. InetAddress
  4. Content Handler

Question No.  39         Marks - 10

Which of these keywords is not a part of exception handling?         

Options          

  1. try
  2. finally
  3. thrown
  4. catch

Question No.  40         Marks - 10

Which of the following package stores all the standard java classes?           

Options          

  1. lang
  2. java
  3. util
  4. packages


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.

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