1-40 Flashcards

1
Q

You are creating an application for computers that run Windows XP or later. This application must run after the computer starts. The user must not be aware that the application is running.
The application performs tasks that require permissions that the logged-in user does not have.
Which type of application allows this behavior?
A. Windows Service application
B. Windows Forms application
C. DOS batch file
D. Terminate-and-stay-resident (TSR) program

A

Windows Service application

  • umożliwia tworzenie długotrwałych aplikacji wykonywalnych, które są uruchamiane w ich własnych sesjach systemu Windows
  • mogą być uruchamiane automatycznie podczas uruchamiania komputera, mogą zostać wstrzymane i ponownie uruchomione
  • nie są wyświetlane żadne interfejsy użytkownika
  • są idealnym rozwiązaniem do użycia na serwerze, lub zawsze, gdy potrzebne są długotrwałe funkcje, które nie zakłócają innych użytkowników pracujących na tym samym komputerze
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

An application presents the user with a graphical interface. The interface includes buttons that the user clicks to perform tasks. Each time the user clicks a button, a method is called that corresponds to that button.
Which term is used to describe this programming model?
A. Functional
B. Service oriented
C. Structured
D. Event driven

A

Event driven

-> czyli sterowany rpzez eventy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does a console-based application differ from a Windows Forms application?
A. Console-based applications require the XNA Framework to run.
B. Windows Forms applications do not provide a method for user input.
C. Windows Forms applications can access network resources.
D. Console-based applications do not display a graphical interface.

A

Console-based applications do not display a graphical interface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which type of Windows application presents a parent window that contains child windows?
A. Application programming interface (API)
B. Single-document interface (SDI)
C. Multiple-document interface (MDI)
D. Command-line interface (CLI)

A

Multiple-document interface (MDI)

-> A multiple document interface (MDI) is a graphical user interface in which multiple windows reside under a single parent window. Such systems often allow child windows to embed other windows inside them as well, creating complex nested hierarchies. This contrasts with single document interfaces (SDI) where all windows are independent of each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
The purpose of a constructor in a class is to:
A. Initialize an object of that class.
B. Release the resources that the class holds.
C. Create a value type.
D. Inherit from the base class.
A

Initialize an object of that class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A class named Manager is derived from a parent class named Employee. The Manager class includes characteristics that are unique to managers.
Which term is used to describe this object-oriented concept?
A. Encapsulation
B. Data modeling
C. Inheritance
D. Data hiding

A

Inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
Which term is used to describe a class that inherits functionality from an existing class?
A. Base class
B. Inherited class
C. Derived class
D. Superclass
A

Derived class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Two classes named Circle and Square inherit from the Shape class. Circle and Square both inherit Area from the Shape class, but each computes Area differently.
Which term is used to describe this object-oriented concept?
A. polymorphism
B. encapsulation
C. superclassing
D. overloading

A

polymorphism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

You create an object of type ANumber. The class is defined as follows.

public Class ANumber {
   private int _number = 7;
   public ANumber () {}
}
The code is executed as follows:
ANumber mynumber = new ANumber(3)
What is the value of _number after the code is executed?
A. Null
B. 0
C. 3
D. 7
A

3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
You need to allow a consumer of a class to modify a private data member.
What should you do?
A. Assign a value directly to the data member.
B. Provide a private function that assigns a value to the data member.
C. Provide a public function that assigns a value to the data member.
D. Create global variables in the class.
A

Provide a public function that assigns a value to the data member.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
You are designing a class for an application. You need to restrict the availability of the member variable accessCount to the base class and to any classes that are derived from the base class.
Which access modifier should you use?
A. Internal
B. Protected
C. Private
D. Public
A

Protected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

You are creating an application that presents users with a graphical interface in which they can enter data. The application must run on computers that do not have network connectivity.
Which type of application should you choose?
A. Console-based
B. Windows Forms
C. Windows Service
D. ClickOnce

A

Windows Forms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You are creating an application that presents users with a graphical interface. Users will run this application from remote computers. Some of the remote computers do not have the . NET Framework installed. Users do not have permissions to install software.
Which type of application should you choose?
A. Windows Forms
B. Windows Service
C. ASP. NET
D. Console-based

A

ASP. NET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The elements of an array must be accessed by:
A. Calling the item that was most recently inserted into the array.
B. Calling the last item in the memory array.
C. Using an integer index.
D. Using a first-in, last-out (FILO) process.

A

Using an integer index.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to as:
A. Analyzing requirements
B. Prototyping
C. Software testing
D. Flowcharting
A

Prototyping

The most important advantage of a prototype is that it simulates the real and future product.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

You have a stack that contains integer values. The values are pushed onto the stack in the following order: 2,4,6,8.
The following sequence of operations is executed:

Pop -

Push 3 -

Pop -

Push 4 -

Push 6 -

Push 7 -

Pop -

Pop -

Pop -
What is the value of the top element after these operations are executed?
A. 2
B. 3
C. 6
D. 7
A

6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q
What are two methods that can be used to evaluate the condition of a loop at the start of each iteration? (Each correct answer presents a complete solution.
Choose two. )
A. If
B. Do. . . While
C. For
D. While
A

For

While

18
Q

You need to evaluate the following expression:

(A>B) AND (C

A

False

19
Q

You are creating a variable for an application.
You need to store data that has the following characteristics in this variable:
✑ Consists of numbers and characters
✑ Includes numbers that have decimal points
Which data type should you use?
A. String
B. Float
C. Char
D. Decimal

A

String

20
Q

You execute the following code.

bool beakerFull = true;
bool flameOn = false;
int iResult = 0;
if (beakerFull) {
	if (flameOn) {
		iResult = 1;
	}
	else {
		iResult = 2;
	}
}
else {
	iResult = 3;
}
What will the variable result be?
A. 0
B. 1
C. 2
D. 3
A

2

21
Q

The purpose of the Catch section in an exception handler is to:
A. Break out of the error handler.
B. Conclude the execution of the application.
C. Execute code only when an exception is thrown.
D. Execute code regardless of whether an exception is thrown.

A

Execute code only when an exception is thrown.

22
Q

You execute the following code.

for (int i = 0; i <= 10; i += 2) {
Console.WriteLine(“Hello”);
}

How many times will the word Hello be printed?
A. 5
B. 6
C. 10
D. 12
A

6

23
Q
In the life cycle of an ASP. NET Web page, which phase follows the SaveStateComplete phase?
A. PostBack
B. Postlnit
C. Load
D. Render
A

Render

The SaveStateComplete event is raised after the view state and control state of the page and controls on the page are saved to the persistence medium.
This is the last event raised before the page is rendered to the requesting browser.

Life cycle:

  1. Start
  2. Initialization
  3. Load
  4. Postback Event Handing
  5. Rendering
  6. Unload
  7. Page Request
  8. Start ….
24
Q

You are creating an ASP. NET Web application.
Which line of code should you use to require a control to process on the computer that hosts the application?
A. defaultRedirect=”ServerPage. htm”
B. redirect=”HostPage. htm”
C. AutoEvencWireup=”true”
D. runat=”server”

A

runat=”server”

25
Q

In this XHTML code sample, what will cause an error?

	The Title

	<h1>This is a Heading. </h1>
	<p>This is a paragraph</p><br>

A. All tags are not in uppercase.
B. The body tag is missing a background attribute.
C. The line break tag is incorrectly formatted.
D. The HTML tags do not read XHTML.

A

The line break tag is incorrectly formatted.

-> In XHTML, the <br></br> tag must be properly closed, like this: <br></br>.

26
Q

You create an application that uses Simple Object Access Protocol (SOAP).
Which technology provides information about the application’s functionality to other applications?
A. Web Service Description Language (WSDL)
B. Extensible Application Markup Language (XAML)
C. Common Intermediate Language (CIL)
D. Universal Description, Discovery, and Integration (UDDI)

A

Web Service Description Language (WSDL)

  • > oparty na XML język do definiowania usług sieciowych umożliwiających automatyczną komunikację, czyli przesyłanie danych pomiędzy systemami teleinformatycznymi
  • > SOAP – protokół komunikacyjny wykorzystujący XML do kodowania wywołań i najczęściej protokół HTTP do ich przenoszenia, możliwe jest jednak wykorzystanie innych protokołów do transportu danych.
27
Q
Which language allows you to dynamically create content on the client side?
A. Extensible Markup Language (XML)
B. Cascading Style Sheets (CSS)
C. Hypertext Markup Language (HTML)
D. JavaScript (JS)
A

JavaScript (JS)

28
Q

How should you configure an application to consume a Web service?
A. Add the Web service to the development computer.
B. Add a reference to the Web service in the application.
C. Add a reference to the application in the Web service.
D. Add the Web service code to the application.

A

Add a reference to the Web service in the application.

29
Q
What are two possible options for representing a Web application within Internet Information Services (IIS)? (Each correct answer presents a complete solution.
Choose two. )
A. Web site
B. Web directory
C. Virtual directory
D. Application server
E. Application directory
A

Web site

Virtual directory

30
Q
Which language uses Data Definition Language (DDL) and Data Manipulation Language (DML)?
A. SQL
B. C++
C. Pascal
D. Java
A

SQL

31
Q

A table named Student has columns named ID, Name, and Age. An index has been created on the ID column. What advantage does this index provide?
A. It reorders the records alphabetically.
B. It speeds up query execution.
C. It minimizes storage requirements.
D. It reorders the records numerically.

A

It speeds up query execution.

32
Q
Which language was designed for the primary purpose of querying data, modifying data, and managing databases in a Relational Database Management
System?
A. Java
B. SQL
C. C++
D. Visual Basic
A

SQL

33
Q

You need to ensure the data integrity of a database by resolving insertion, update, and deletion anomalies.
Which term is used to describe this process in relational database design?
A. Isolation
B. Normalization
C. Integration
D. Resolution

A

Normalization

34
Q

In your student directory database, the Students table contains the following fields: firstName lastName emailAddress telephoneNumtoer
You need to retrieve the data from the firstName, lastName, and emailAddress fields for all students listed in the directory. The results must be in alphabetical order according to lastName and then firstName.
Which statement should you use?

A. SELECT firstName, lastName, emailAddress
FROM Students
ORDER BY lastName, firstName

B. SELECT firstName, lastName, emailAddress
FROM Students
SORT BY lastName, firstName

C. SELECT firstName, lastName
FROM Students
ORDER BY lastName, firstName, emailAddress

D. SELECT firstName, lastName, emailAddress
FROM Students BY lastName, firstName

A

A

35
Q

A data warehouse database is designed to:
A. Enable business decisions by collecting, consolidating, and organizing data.
B. Support a large number of concurrent users.
C. Support real-time business operations.
D. Require validation of incoming data during real-time business transactions.

A

Enable business decisions by collecting, consolidating, and organizing data

warehouse database = hurtoownia danych

  • W skład hurtowni wchodzą zbiory danych zorientowanych tematycznie
  • są bazami danych integrującymi dane ze wszystkich pozostałych systemów bazodanowych w przedsiębiorstwie.
  • Architektura bazy hurtowni jest zorientowana na optymalizację szybkości wyszukiwania i jak najefektywniejszą analizę zawartości
36
Q

You are creating an application that presents the user with a Windows Form. You need to configure the application to display a message box to confirm that the user wants to close the form.
Which event should you handle?

A. Deactivate
B. Leave
C. FormClosed
D. FormClosing

A

FormClosing

37
Q

Which type of application has the following characteristics when it is installed?
✑ Runs continuously in the background by default when the startup type is set to automatic
✑ Presents no user interface
A. Windows Service
B. Windows Forms
C. Console-based
D. Batch file

A

Windows Service

38
Q

You are creating an application that accepts input and displays a response to the user. You cannot create a graphical interface for this application.
Which type of application should you create?
A. Windows Forms
B. Windows Service
C. Web-based
D. Console-based

A

Console-based

39
Q
You need to create an application that processes data on a last-in, first-out (LIFO) basis.
Which data structure should you use?
A. Queue
B. Tree
C. Stack
D. Array
A

Stack

40
Q
You are creating an application for a help desk center. Calls must be handled in the same order in which they were received.
Which data structure should you use?
A. Binary tree
B. Stack
C. Hashtable
D. Queue
A

Queue