IBM Test For Svecw By S.Adinarayana

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Abhiram
A
Abhiram
Community Contributor
Quizzes Created: 3 | Total Attempts: 896
Questions: 31 | Attempts: 113

SettingsSettingsSettings
IBM Test For Svecw By S.Adinarayana - Quiz

This test is a practice test powered by S. Adinarayana for svecw


Questions and Answers
  • 1. 

    A developer has a static web project? Which archive he can use to export it?

    • A.

      WAR

    • B.

      EAR

    • C.

      JAR

    • D.

      RAR

    Correct Answer
    A. WAR
    Explanation
    A developer can use the WAR (Web Application Archive) format to export a static web project. The WAR format is specifically designed for web applications and includes all the necessary files and resources needed to deploy the project on a web server. It allows for easy distribution and deployment of web applications, making it the appropriate choice for exporting a static web project.

    Rate this question:

  • 2. 

    Application Server = Web Container +____________.

    • A.

      Web-Services Container

    • B.

      EJB Container

    • C.

      Legacy Application

    • D.

      Web Client

    Correct Answer
    B. EJB Container
    Explanation
    An application server consists of a web container and an EJB container. The web container manages the execution of web applications, while the EJB container manages the execution of enterprise Java beans (EJBs). EJBs are server-side components that provide business logic and are used to develop scalable and robust enterprise applications. Therefore, the correct answer is the EJB container.

    Rate this question:

  • 3. 

    A developer wants to add the file association for mpeg file for a java project how he can do this.

    • A.

      Got to windows ->preferences->java->Editors->File Association->Add

    • B.

      Got to windows ->preferences->setting->Editors->File Association->Add

    • C.

      Got to windows ->preferences->general->Editors->File Association->Add

    • D.

      Got to windows ->preferences->Data->Editors->File Association->Add

    Correct Answer
    B. Got to windows ->preferences->setting->Editors->File Association->Add
  • 4. 

    A developer received a made java project with 100 packages , each package contains at least 50 java classes , what is the convenient way to navigate and analysis this project

    • A.

      Open the project in project explorer view

    • B.

      Open the project with show all option in project explorer view

    • C.

      Open the project in java browsing perspective

    • D.

      Open the project in package explorer

    Correct Answer
    C. Open the project in java browsing perspective
    Explanation
    The most convenient way to navigate and analyze this project would be to open it in the java browsing perspective. This perspective is specifically designed for Java development and provides various tools and views that can help with navigation and analysis of the project. It allows for easy exploration of packages, classes, and their relationships, making it easier to understand the structure and functionality of the project.

    Rate this question:

  • 5. 

    Which one out of the following a developer use for the business logic

    • A.

      A) Servlet

    • B.

      B) HTML

    • C.

      C) JSP

    • D.

      D) Bean

    Correct Answer
    D. D) Bean
    Explanation
    A developer uses Bean for the business logic because Beans are Java classes that encapsulate data and provide methods to manipulate that data. They are commonly used in Java EE applications to handle the business logic and interact with the database. Servlets, HTML, and JSP are not specifically designed for business logic implementation, but they can be used in combination with Beans to create a complete application.

    Rate this question:

  • 6. 

    What are the four options available when any developer selects Local history.

    • A.

      A) Compare with , replace with previous, replace with , restore from

    • B.

      B) Compare with, restore from, rename, organize imports

    • C.

      C) replace with previous, replace with, time stamps, refactor

    • D.

      D) none of these

    Correct Answer
    A. A) Compare with , replace with previous, replace with , restore from
    Explanation
    The correct answer is A) Compare with, replace with previous, replace with, restore from. These options are available when a developer selects Local history. "Compare with" allows the developer to compare the current version with a previous version. "Replace with previous" allows the developer to replace the current version with the previous version. "Replace with" allows the developer to replace the current version with another version. "Restore from" allows the developer to restore the file from a previous version.

    Rate this question:

  • 7. 

        A developer wants to share the preferences setting with there team members how he can do this.

    • A.

      Select File ->Export->Project->preferences and select export all

    • B.

      Select File ->Export->Workspace->preferences and select export all

    • C.

      Select File->Export->General->Preferences and select export all

    • D.

      None of these

    Correct Answer
    C. Select File->Export->General->Preferences and select export all
    Explanation
    The correct answer is "Select File->Export->General->Preferences and select export all" because this option allows the developer to export all preferences settings in the workspace. The other options either do not provide the option to export preferences or do not specify the correct menu path to access the preferences export feature.

    Rate this question:

  • 8. 

      Developer wants to create a fast view, what is the way to create the fast view in IBM RAD.

    • A.

      A) Drag view on shortcut bar

    • B.

      B) None of these

    • C.

      C) Windows->show view->fast view

    • D.

      D) File->new->make fast view

    Correct Answer
    A. A) Drag view on shortcut bar
    Explanation
    To create a fast view in IBM RAD, the developer can simply drag the view onto the shortcut bar. This allows for quick and easy access to the view, improving efficiency and productivity.

    Rate this question:

  • 9. 

    A developer is using a new java class wizard to create a new java class , but does not enter a super class  when creating the new class , what will happen?

    • A.

      A) The finish button is disabled until the super class is selected

    • B.

      B) The last selected class in the project will be populated in the dialog by default

    • C.

      C) The java.lang.object class will be the super class by default

    • D.

      D) The class will e created but will have a compile error upon save

    Correct Answer
    C. C) The java.lang.object class will be the super class by default
    Explanation
    When a developer uses the new java class wizard to create a new java class without entering a super class, the default super class that will be assigned to the new class is the java.lang.object class. This means that the new class will inherit the properties and methods of the java.lang.object class.

    Rate this question:

  • 10. 

    Which one out of the following a developer use as a controller

    • A.

      Servlet

    • B.

      EJB

    • C.

      Bean

    • D.

      JSP

    Correct Answer
    A. Servlet
    Explanation
    A developer would use a Servlet as a controller in a web application. Servlets are Java classes that are used to handle requests and responses between the client and the server. They act as a middle layer between the user interface and the business logic of the application. Servlets can receive requests from the client, process them, and generate dynamic content to be sent back as a response. They are commonly used in Java web development to handle the control flow and logic of the application.

    Rate this question:

  • 11. 

    What is the default target runtime available while creating dynamic web project In RAD 7.0?

    • A.

      Apache tomcat 4.1

    • B.

      B) WebSphere Application server v6.0

    • C.

      C) WebSphere Application Server V6.1

    • D.

      WebSphere Application Server V7.0

    • E.

      Weblogic server

    Correct Answer
    C. C) WebSphere Application Server V6.1
    Explanation
    The default target runtime available while creating a dynamic web project in RAD 7.0 is WebSphere Application Server V6.1.

    Rate this question:

  • 12. 

    In which folder RAD stores the Master.css file?

    • A.

      A) WebContent

    • B.

      Themes

    • C.

      JavaResource:src

    • D.

      WEB-INF

    Correct Answer
    B. Themes
    Explanation
    The correct answer is "Themes" because RAD stores the Master.css file in the Themes folder.

    Rate this question:

  • 13. 

    Every JSP Converted to Servlet?

    • A.

      False

    • B.

      True

    • C.

      True or false

    • D.

      None

    Correct Answer
    B. True
    Explanation
    Every JSP is converted to a servlet before it is executed by the server. This is because JSP is a high-level language that is easier for developers to work with, but the server understands only servlets. So, during the execution process, the JSP file is converted into a servlet by the server's JSP compiler. Therefore, the correct answer is true.

    Rate this question:

  • 14. 

    A developer wants to make a jsp as a part of logical flow from the web site navigation diagram , by which means he can move the jsp to Web Diagram editor?

    • A.

      Right click on jsp at Web site navigation diagram and choose move to web diagram

    • B.

      Right click on jsp at project navigator and select move to web Diagram

    • C.

      Right click o jsp at Web site navigation diagram and click show page in web diagram editor

    • D.

      Right click on jsp at project navigator and click show page in web diagram editor

    Correct Answer
    C. Right click o jsp at Web site navigation diagram and click show page in web diagram editor
    Explanation
    The correct answer is to right click on the JSP at the Web site navigation diagram and click show page in web diagram editor. This option allows the developer to directly move the JSP to the Web Diagram editor for further editing and integration into the logical flow of the website.

    Rate this question:

  • 15. 

    A developer wants to visually examine and modify a Web application using an application framework, such as Struts or JavaServer Faces ,  what kind of diagram he should choose

    • A.

      Web Diagram

    • B.

      Web site Navigation

    • C.

      Flow Diagram

    • D.

      Web site Uniformity Diagram

    Correct Answer
    A. Web Diagram
    Explanation
    A web diagram would be the most suitable choice for a developer who wants to visually examine and modify a web application using an application framework like Struts or JavaServer Faces. A web diagram provides a visual representation of the different components and their relationships within a web application, allowing the developer to easily understand and modify the structure and flow of the application. This diagram can help in identifying any potential issues or areas for improvement in the web application.

    Rate this question:

  • 16. 

    While running a login.jsp , a developer passes user name and password to it , after pressing the Login button , the control is not going to the intended page , what might be the problem

    • A.

      None of these.

    • B.

      Java script for on click event is not written for the Login Button

    • C.

      Request Dispatch code is not written in jsp

    • D.

      The input controls and Submit button are not placed inside form

    Correct Answer
    D. The input controls and Submit button are not placed inside form
    Explanation
    The problem might be that the input controls and Submit button are not placed inside a form. This is necessary in order for the data entered by the user to be submitted to the intended page. Without a form, the data will not be sent and the control will not be redirected to the intended page.

    Rate this question:

  • 17. 

    A developer is coding a jsp and wants to write the Script for the Submit button , which view he should choose to do this? 

    • A.

      Outline View

    • B.

      Page Data View

    • C.

      Quick Edit View

    • D.

      Palette View

    Correct Answer
    C. Quick Edit View
    Explanation
    The Quick Edit View is the most suitable option for the developer to write the script for the Submit button in a JSP. This view provides a convenient and efficient way to edit the code quickly without the need to navigate through multiple pages or sections. It allows the developer to directly access and modify the relevant code for the Submit button, making the coding process more streamlined and efficient.

    Rate this question:

  • 18. 

    A developer wants to configure 404 error page for a dynamic web project from where he can do this?

    • A.

      From Action Form

    • B.

      From Source View of JSP

    • C.

      From Web Content folder

    • D.

      From Deployment descriptor of Project

    Correct Answer
    D. From Deployment descriptor of Project
    Explanation
    The correct answer is "From Deployment descriptor of Project". In a dynamic web project, the developer can configure the 404 error page by specifying it in the deployment descriptor (web.xml) file. The deployment descriptor is an XML file that contains configuration information for the web application, including error page mappings. By adding the appropriate error-page element in the web.xml file and specifying the error code (404) and the corresponding error page, the developer can configure the 404 error page for the project.

    Rate this question:

  • 19. 

    ---------- are programs that run on a web server and build in web pages dynamically

    • A.

      Struts

    • B.

      JSF

    • C.

      Servlet

    • D.

      JSP

    Correct Answer
    C. Servlet
    Explanation
    Servlets are programs that run on a web server and build web pages dynamically. They are Java-based and are used to handle the requests and responses between the web server and the client. Servlets are often used in combination with JSP (JavaServer Pages) to create dynamic web applications. Struts and JSF are both frameworks that can be used with servlets to simplify the development process, but they are not programs themselves. Therefore, the correct answer is Servlet.

    Rate this question:

  • 20. 

    A developer configures Servlet a with Load on start up value of 1 and Servlet B with Load on start up value 2, what is the effect of this ?

    • A.

      Servlet A will Load , Servlet B will Load , Servlet A init(),Servlet B init()

    • B.

      Servlet B will Load , Servlet B init(),Servlet A will Load ,Servlet A init()

    • C.

      Servlet A will Load , Servlet A init(),Servlet B will Load ,Servlet B init()

    • D.

      Servlet B will Load , Servlet A will Load , Servlet B init(),Servlet A init()

    Correct Answer
    C. Servlet A will Load , Servlet A init(),Servlet B will Load ,Servlet B init()
    Explanation
    The correct answer is that Servlet A will load first, followed by Servlet B. This is because the load-on-startup value determines the order in which servlets are initialized when the server starts up. Servlet A has a load-on-startup value of 1, while Servlet B has a load-on-startup value of 2. Servlets with lower load-on-startup values are loaded and initialized before servlets with higher values. Therefore, Servlet A will load and initialize first, followed by Servlet B.

    Rate this question:

  • 21. 

    At which point RAD publishes the application to server?

    • A.

      When developer adds the application to server

    • B.

      When server is started

    • C.

      When server is started in profile mode

    • D.

      When server is started in debug mode

    Correct Answer
    B. When server is started
    Explanation
    The application is published to the server when the server is started. This means that the application is made available and ready to be accessed by users once the server is up and running. It is important for the server to be started in order for the application to be deployed and accessible to users.

    Rate this question:

  • 22. 

    What are the three modes in a server can be started?

    • A.

      Normal, Testing, Management

    • B.

      Management, testing, debug

    • C.

      Normal, Debug, Profile

    • D.

      None of these

    Correct Answer
    C. Normal, Debug, Profile
    Explanation
    The correct answer is "Normal, Debug, Profile". These are the three modes in which a server can be started. In the Normal mode, the server runs in its regular state, handling incoming requests and serving clients. The Debug mode is used for troubleshooting and debugging purposes, allowing developers to step through the code and track down issues. The Profile mode is used for performance analysis, collecting data on the server's execution and identifying areas for optimization.

    Rate this question:

  • 23. 

    What is quickfix feature in Rad environment

    • A.

      Fix the error automatically

    • B.

      Suggest solution to hielighted error

    • C.

      Gives error

    • D.

      None

    Correct Answer
    B. Suggest solution to hielighted error
    Explanation
    The quickfix feature in the Rad environment suggests a solution to the highlighted error. It provides recommendations or options to fix the error automatically, making it easier for the user to resolve the issue efficiently. This feature helps in improving productivity and reducing the time required to correct errors in the Rad environment.

    Rate this question:

  • 24. 

    What is the advantage of using the Refactor Move feature, as opposed to moving a Java source file manually outside of Rational Application Developer?

    • A.

      Verifies every reference to the resource within the workspace and updates all references. Moving the file outside of the workbench will not update these references

    • B.

      Displays the tasks and errors in the same scale as the lines within the editor. The right indicator bar displays the tasks and errors as well, but in scale with the entire file.

    • C.

      Gives warning when it is opened

    • D.

      None

    Correct Answer
    A. Verifies every reference to the resource within the workspace and updates all references. Moving the file outside of the workbench will not update these references
    Explanation
    The advantage of using the Refactor Move feature is that it verifies every reference to the resource within the workspace and updates all references. This means that if the file is moved using this feature, all the references to that file within the workspace will be updated automatically. On the other hand, if the file is manually moved outside of Rational Application Developer, these references will not be updated.

    Rate this question:

  • 25. 

    Name two features that add the correct import statement in the Java Editor.

    • A.

      The Organize and quickfix

    • B.

      Drag& scan

    • C.

      A&B

    • D.

      None

    Correct Answer
    A. The Organize and quickfix
    Explanation
    The Organize feature in the Java Editor automatically arranges the import statements in alphabetical order and removes any unused imports. The quickfix feature suggests and automatically adds the necessary import statement when a class or package is referenced but not imported. These two features together help in managing and adding the correct import statements in the Java Editor.

    Rate this question:

  • 26. 

    WWhat are the types of problems and the associated icons in the Problems view   

    • A.

      Error,report,submit

    • B.

      Error,warning,information

    • C.

      Report,warning

    • D.

      None

    Correct Answer
    B. Error,warning,information
    Explanation
    The correct answer is "error, warning, information". In the Problems view, different types of problems are displayed with associated icons. Errors are represented by red icons, warnings by yellow icons, and information by blue icons. This allows users to quickly identify and prioritize the issues in their project.

    Rate this question:

  • 27. 

    How to open the admin console of a server?

    • A.

      Right click on server at server view and select open admin console

    • B.

      Open browser and type http://localhost:8080/admin

    • C.

      Open Browser and type http://localhost:9080/admin

    • D.

      Select Windows->Preferences->Server->Installed Runtime->WebSphere->Open Admin Console

    Correct Answer
    A. Right click on server at server view and select open admin console
    Explanation
    The correct answer is to right click on the server at the server view and select open admin console. This option allows the user to access the admin console directly from the server view by simply right clicking on the server and selecting the appropriate option. This is a convenient and quick way to open the admin console without having to navigate through other menus or open a browser.

    Rate this question:

  • 28. 

    Which database is provided as default with RAD v7.0

    • A.

      DB2

    • B.

      Derby

    • C.

      MYSQL

    • D.

      MSAccess

    Correct Answer
    B. Derby
    Explanation
    The default database provided with RAD v7.0 is Derby.

    Rate this question:

  • 29. 

    Which component of an application server routes the user request either to web server or to web container

    • A.

      Web server Plugin

    • B.

      web server

    • C.

      Servlet

    • D.

      Model

    Correct Answer
    A. Web server Plugin
    Explanation
    The web server plugin is the component of an application server that routes the user request either to the web server or to the web container. It acts as a bridge between the web server and the web container, allowing the user request to be directed to the appropriate component based on the configuration. This plugin is responsible for handling the communication and coordination between the web server and the web container, ensuring that the user request is processed correctly.

    Rate this question:

  • 30. 

    Which one is  not a Servlet life cycle method

    • A.

      Paint

    • B.

      Init

    • C.

      Service

    • D.

      Destroy

    • E.

      Do get

    Correct Answer
    A. Paint
    Explanation
    The correct answer is "Paint". Paint is not a Servlet life cycle method. The Servlet life cycle methods are Init, Service, and Destroy. Init is called when the servlet is first created, Service is called to process client requests, and Destroy is called when the servlet is being taken out of service.

    Rate this question:

  • 31. 

    Name the three views associated with the Data Perspective.

    Correct Answer
    Database Explorer, Data Project Explorer, DB Output
    Explanation
    The three views associated with the Data Perspective are Database Explorer, Data Project Explorer, and DB Output. The Database Explorer allows users to view and interact with the database schema, tables, and data. The Data Project Explorer provides a hierarchical view of the data projects and their associated files. The DB Output view displays the output generated by executing SQL queries or other database operations. These three views are essential for managing and working with data in a database system.

    Rate this question:

Related Topics

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.