0

programming languages Online Quiz - 117

Description: programming languages Online Quiz - 117
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?

  1. default access

  2. public

  3. private

  4. protected


Correct Option: A

Given: 11. int x = 3; 12. int y = 1; 13. if (x = y) { 14. System.out.println(“x = “ + x); 15. } What is the result?

  1. x = 1

  2. x = 3

  3. Compilation fails.

  4. An exception is thrown at runtime.


Correct Option: C
  1. Compilation fails because of an error in line 2 of class Test2.

  2. x = 42

  3. Compilation fails because of an error in line 3 of class Test1.

  4. Compilation fails because of an error in line 4 of class Test2.


Correct Option: A

what are the various types of Reporting

  1. Classical report

  2. Interactive report

  3. List and Grid display

  4. Style report

  5. General Report


Correct Option: A,B,C
  1. ActionServlet

  2. ActionJsp

  3. ActionClass

  4. Action


Correct Option: A
  1. backword overflow

  2. forward overflow

  3. Single controller servlet

  4. no forward overflow


Correct Option: C

Expansion of MVC architecture

  1. Model,Vision,Controller

  2. Medium,Vision,controller

  3. Model,View,Controller

  4. Model,View,Concept


Correct Option: C

MVC1 architecture is

  1. loosely coupled

  2. not coupled

  3. tightly coupled

  4. coupled


Correct Option: C

The model component includes

  1. Bean

  2. HTML

  3. servlet

  4. jsp


Correct Option: A

The View part of MVC includes

  1. bean

  2. EJB

  3. JSP

  4. Servlet


Correct Option: C

The controller part includes

  1. Html

  2. jsp

  3. Servlet

  4. Bean


Correct Option: C
  1. Reusable

  2. Expressive

  3. not easy to use

  4. Easier support


Correct Option: A,B,D

What are Cookies

  1. information sent by web server

  2. information sent by servlet

  3. information sent by browser

  4. information sent by jsp


Correct Option: A

Method by which sensitive data is sent?

  1. doPost

  2. doGet

  3. Get

  4. Post


Correct Option: A

How do I send email from my Servlet?

  1. Mail Service

  2. Simple Mail Protocol

  3. Java Mail Service

  4. Mail Protocol


Correct Option: C
- Hide questions