Eclipse MCQs

Eclipse MCQs

These Eclipse multiple-choice questions and their answers will help you strengthen your grip on the subject of Eclipse. You can prepare for an upcoming exam or job interview with these 20 Eclipse MCQs.
So scroll down and start answering.

1: How can you minimise all views except for the currently selected view in the Eclipse interface?

A.   Press Control-M (Windows) or Command-M (Mac)

B.   Double-click the tab you want to maximise

C.   All of these answers

D.   Click the Maximise button at the top right of the view

2: What happens when you execute the Run -> Skip all Breakpoints command?

A.   All breakpoints are deleted

B.   None of these answers

C.   All breakpoints will not be fired when debugging and will not cause application execution to suspend

D.   All breakpoints and bookmarks are disabled

3: What is not a key part of Eclipse projects and technologies?

A.   Plug-in Development Environment (PDE)

B.   Eclipse Project

C.   Java Development Toold (JDT)

D.   Eclipse .NET

4: Which is a valid way to create a code snippet?

A.   Right-click the selected code and select Add to Snippets

B.   Drag the code into the snippets view

C.   Click Source -> Snippets -> Create Snippet

D.   With the code selected, click the + button in the Snippets view

5: In this image, what does the circled button do?

A.   It expands the comparison between the two files to include whitespace.

B.   It allows you to delete the line of code to which it is connected.

C.   It allows changes from one version of a file to be applied to another version of the file.

D.   It allows you to merge both lines of code together.

6: When inserting a snippet containing variables into a source file, how are values for the variable defined?

A.   Eclipse fills them in with a drop-down menu of available optons.

B.   They are automatically highlighted in code.

C.   They are populated using environment variables.

D.   You populate them through a pop-up windows.

7: How can you create a new Git branch in Eclipse?

A.   All of these answers

B.   Right-click your project in the Package Explorer and select Team -> Switch To -> New Branch

C.   Click File -> New -> Git -> Branch

D.   Click Source -> Team -> Switch To -> New Branch

8: Why might you use the Open Type button?

A.   To open a file by its name

B.   To search the workbench for a class to open in an editor

C.   To find a string in a text file

D.   To find all places where a certain type is instantiated

9: In the JUnit view, what is the value in the parentheses after a previously run unit test?

A.   The number of errors found in the test

B.   The time it took the test to run

C.   The name of the package containing the test class

D.   The test class name

10: In this image, what does the circled icon in the Problems view do?

A.   It sends the currently selected problem to another view.

B.   It indents the currently selected problem.

C.   It opens the Filter menu so you can customise what problems are displayed.

D.   It jumps to the currently selected problem in the Editor.

11: What can you not do in the Expressions view?

A.   Track the value of a variable throughout the lifetime of the app.

B.   Change the name of a variable while debugging.

C.   Change the value of a final variable while debugging.

D.   Track values of variables when they are out of scope.

12: Your code is highlighted in red when running code coverage. Why is this?

A.   The code is the cause of a compiler warning.

B.   The method is unused or causes runtime errors.

C.   The code is within an if statement that is always evaluated as true at runtime.

D.   No code calls the method.

13: When selecting the Synchronise Workspace option for a project, what perspective is opened?

A.   Git

B.   Java

C.   Team Synchronising

D.   Remote Synchronise

14: Which is not a way to check the value of a variable while debugging?

A.   Hover ove the variable in the Editor.

B.   Check the Debug view.

C.   Check the Variables view.

D.   Watch the variable in the Expressions view.

15: How can you configure Eclipse to open a webpage in a browser outside of Eclipse using the Windows (Eclipse) -> Preferences -> General -> Web Browser dialog page?

A.   Select Use external web browser.

B.   Select Add a new browser and select the desired browser in the External web browsers menu.

C.   Select Use external web browser, click the New or Search button, add your browser, and then select it in the External web browsers menu.

D.   Use the Search button to search for an installed web browser.

A.   Git Staging

B.   History

C.   Synchronize

D.   Git Repositories

17: What is included in your wqorkspace folder?

A.   A hidden .metadata folder

B.   A hidden .metadata folder and projects imported into the workspace only

C.   Only projects imported into the workspace

D.   A hidden .metadata folder and projects created in the workspace

18: What can you not do in the Variables view?

A.   Monitor variables that are outside the scope of the current stack frame

B.   Set a breakpoint to track a particular instance

C.   Inspect the values of an object's fields

D.   Edit the value of a variable while the debugger is running your app

19: What is not a method stub that Eclipse will create for you in the New JUnit Test Case window?

A.   TearDown()

B.   SetUpClass()

C.   TearDownAfterClass()

D.   SetUp()

20: What does the Problems view show?

A.   All of the answers

B.   Warnings and errors

C.   Code that does not match your formatting settings

D.   Threads containing errors

21: When switching workspaces, what is preserved?

A.   All preferences

B.   None of these answers

C.   The current perspective

D.   Preferences for a language (e.g., Java)

22: How can you set files to save automatically when launching an application?

A.   Click Window (Eclipse) -> Preferences -> Run/Debug -> Launching, and then select Save required dirty editors before launching.

B.   Click Window (Eclipse) -> Preferences -> Java -> Editor -> Save Actions

C.   Click File -> Save All.

D.   Change the project's run configuration

23: Which is not a valid way to create a test class?

A.   In the Package Explorer, right-click a class and select New > JUnit Test Case.

B.   None of these answers

C.   Create a JUnit Test Case class through the File menu.

D.   Create the class manually while in any perspective.

24: What happens when you double-click a Revision Time in the History view?

A.   Nothing happens.

B.   The select file is opened in the Editor in its state at the time of the revision.

C.   The revision opens in a Split Editor window alongside the current local revision of the file.

D.   A pop-up window showing details about the revision appears.

25: What is the benefit of using perspectives?

A.   To switch between preferences within a single workspace

B.   To easily switch between different layouts of views in the Workbenchfor specific tasks

C.   To manage the fact that some views work only in certain perspectives

D.   To debug multiple applications at the same time

26: How can you view all the commits for a single file?

A.   Open the commit in the Git Staging view.

B.   Open the commit in the Git Reflog view.

C.   Double-click a commit in the History view.

D.   Right-click the file in the Package Explorer and select Team > Show in History.

27: What is required to create a Git commit?

A.   All of these answers

B.   A local repository

C.   Staged changes

D.   A commit message

28: How do you connect to and debug a remote Java application/server?

A.   Click Run > Debug As > Remote Application.

B.   You cannot do this in Eclipse.

C.   Create and run a configuration under Run > Debug Configurations > Remote Java Application.

D.   Click Run > External Tools.