Software Fundamentals 3

11 Questions | Total Attempts: 408

SettingsSettingsSettings
Please wait...
Software Fundamentals Quizzes & Trivia

Questions and Answers
  • 1. 
    You are developing a Windows forms application used by a government agency. You need to develop a distinct user interface element that accepts user input. This user interface will be reused across several other applications in the organization. None of the controls in the Visual Studio toolbox meets your requirements; you need to develop all your code in house. Which of the following actions should you take?
    • A. 

      Develop a Windows Forms application for the user interface.

    • B. 

      Develop a custom control for the user interface.

    • C. 

      Buy the control from a third-party.

    • D. 

      Develop a console application for the user interface.

  • 2. 
    You are developing a user interface component that responds to user actions such as keystrokes. Which of the following programming constructs should you use to accomplish this requirement?
    • A. 

      Event

    • B. 

      Class

    • C. 

      Delegate

    • D. 

      Property

  • 3. 
    You need a Windows Form similar to the W_RecForm form that is being already used by the application. However, you need a couple of extra controls on your form that are not available on W_RecForm. You need to make sure that you accomplish this requirement with the least coding effort. In future, if the W_RecForm is enhanced, you need to make sure that those enhancements are available in your form as well. What should you do?  
    • A. 

      Copy the code for W_RecForm to a new form. Modify the code for the new form.

    • B. 

      Use visual inheritance to inherit the new form from W_RecForm. Add the new functionality to the new control.

    • C. 

      Modify the code for W_RecForm. Copy the code to create a new form.

    • D. 

      Convert the code in the W_RecForm to a custom control. Use the new custom control in all places.

  • 4. 
    You are developing a Windows application. The user needs to work with multiple windows of the application at the same time and needs a simplified interface. The application needs to be compatible with different display configurations, such as multiple monitors. Which of the following interfaces should you create?  
    • A. 

      Create a Multiple Document Interface (MDI) Application. Open a single instance of the application.

    • B. 

      Create a Single Document Interface (SDI) Application. Open a single instance of the application.

    • C. 

      Create a Single Document Interface (SDI) Application. Open multiple instances of the application.

    • D. 

      Create a Multiple Document Interface (MDI) Application. Open multiple instances of the application.

  • 5. 
    You need an application that updates the inventory every morning when you log in to the workstation. If an error occurs during update, the application needs to log messages to a text file. The application doesn’t need any user interaction. You want to automate the process that launches the application.    You want to minimize the efforts for developing, installing, and updating the application.    Which type of application should you create?  
    • A. 

      Windows Service

    • B. 

      Windows Form

    • C. 

      Web Form

    • D. 

      Console application

  • 6. 
    You are developing a data-entry application that receives user input in multiple data fields. The application allows users to enter the data either by using a keyboard or by using a bar-code scanner. When a code is entered, a picture of the product appears onscreen.    The application also needs to log its operation to a console window.   Occasionally, the operator will look at the console window to monitor communication with the scanner.    What project should you choose to create such an application?
    • A. 

      A console application project

    • B. 

      A console application project with the Output type set to Windows Application

    • C. 

      A Windows Forms application project

    • D. 

      A Windows Forms application project with the Output type set to Console Application

  • 7. 
    You are developing an application that receives orders over the Internet via Electronic Data Interface (EDI).    The application needs to run constantly the background and wait for orders.    There is no user interface.    The application writes messages to the Windows application event log.    The application must continue to run even after a user logs off from the computer.    Which type of application should you develop for this requirement?  
    • A. 

      Windows Service application

    • B. 

      Windows Forms application

    • C. 

      Console application

    • D. 

      Web application

  • 8. 
    You are developing an application that writes messages to the Windows application event log for the local machine. What should you use to view the messages written by the application?  
    • A. 

      Event Viewer

    • B. 

      Notepad

    • C. 

      XPS Viewer

    • D. 

      Remote Desktop Connection

  • 9. 
    You are developing a new Windows service application.    The application contains three different Windows services.    Each service will have a different start type.    Which of the following classes will help you perform the installation tasks specific to each service?  You must suggest a solution that requires the least coding effort.  
    • A. 

      System.ServiceProcess.ServiceProcessInstaller

    • B. 

      System.ServiceProcess.ServiceInstaller class

    • C. 

      System.Configuration.Installer class

    • D. 

      System.Configuration.Installer.ComponentInstaller class

  • 10. 
    You are developing a new Windows service application that process orders.    The system administrator must be able to suspend order processing while maintenance operations are in progress.    When maintenance operations are completed, order processing must be resumed without the loss in any information. How should you configure this Windows service?  
    • A. 

      Override the OnPause method of the ServiceBase class.

    • B. 

      Set the CanPauseAndContinue property of the service to true.

    • C. 

      Set the CanPauseAndContinue property of the service to false.

    • D. 

      Override the OnContinue method of the ServiceBase class.

  • 11. 
    What is an IDE?
    • A. 

      Allows creation of JavaScript

    • B. 

      Integrated Development Environment which allows coders to code programs

    • C. 

      Allows creation of HTML code to create web pages

    • D. 

      Allows us to manage SQL databases

Back to Top Back to top