41-80 Flashcards

1
Q
In the application life cycle, the revision of an application after it has been deployed is referred to as:
A. Unit testing
B. Integration
C. Maintenance
D. Monitoring
A

Maintenance

-> czyli obsługa techniczna

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

In which order do the typical phases of the Software Development Life Cycle occur?
A. Development, design, requirements gathering, and testing
B. Design, requirements gathering, development, and testing
C. Design, development, requirements gathering, and testing
D. Requirements gathering, design, development, and testing

A

Requirements gathering, design, development, and testing

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

You execute the following code.

bool beakerFull = true;
bool flameOn = false;
int iResult;

switch (beakerFull) {
	case true:
		switch (flameOn) {
			case true:
				iResult = 1;
				break;
			case false: 
				iResult = 2;
				break;
		}
	break;
	case false:
		switch (flameOn) {
			case false:
				iResult = 3;
				break;
			case true: 
				iResult = 4;
				break;
		}
	break;
}
What will the variable result be?
A. 1
B. 2
C. 3
D. 4
A

2

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

You execute the following code.

for (int i = 0; i <= 100; i++) {
	if (i % 2 != 0) {
		Console.WriteLine("Hello")
	}
}
How many times will the word Hello be printed?
A. 49
B. 50
C. 51
D. 100
A

50

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
You are creating a routine that will perform calculations by using a repetition structure. You need to ensure that the entire loop executes at least once.
Which looping structure should you use?
A. For
B. While
C. Do„While
D. For. „Each
A

Do„While

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

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

A

Execute code regardless of whether an exception is thrown.

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

You are creating the necessary variables for an application. The data you will store in these variables has the following characteristics:
✑ Consists of numbers
✑ Includes numbers that have decimal points
✑ Requires more than seven digits of precision
You need to use a data type that will minimize the amount of memory that is used.
Which data type should you use?
A. decimal
B. double
C. byte
D. float

A

double

float dokładnoś 6-9 cyfr, 4bajty
double dokładność 15-17 cyfr, 8 bajtów
decimal dokładność 28-29 cyfr, 16 bajtów

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

Your database administrators will not allow you to write SQL code in your application.
How should you retrieve data in your application?
A. Script a SELECT statement to a file.
B. Query a database view.
C. Call a stored procedure.
D. Reference an index in the database.

A

Call a stored procedure.

The SQL will only be inside the stored procedure.

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

You are reviewing a design for a database. A portion of this design is shown in the exhibits. Note that you may choose either the Crow’s Foot Notation or Chen
Notation version of the design. (To view the Crow’s Foot Notation, click the Exhibit A button. To view the Chen Notation, click the Exhibit B button. )

Which term is used to describe the Customer component?
A. Field
B. Attribute
C. Property
D. Entity
A

Entity

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

You have a server that limits the number of data connections.
What should you use to optimize connectivity when the number of users exceeds the number of available connections?
A. Connection timeouts
B. Named pipes
C. Normalization
D. Connection pooling

A

Connection pooling

In software engineering, a connection pool is a cache of database connections maintained so that the connections can be reused when future requests to the database are required.

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

Your application must pull data from a database that resides on a separate server.
Which action must you perform before your application can retrieve the data?
A. Configure the network routers to allow database connections.
B. Install the database on each client computer.
C. Create a routine that bypasses firewalls by using Windows Management Instrumentation (WMI).
D. Establish a connection to the database by using the appropriate data provider.

A

Establish a connection to the database by using the appropriate data provider.

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

You have a class named Truck that inherits from a base class named Vehicle. The Vehicle class includes a protected method named brake ().
How should you call the Truck class implementation of the brake () method?
A. Vehicle. brake ();
B. This. brake ();
C. MyBase. brake();
D. Truck. brake ();

A

MyBase. brake();

The MyBase keyword behaves like an object variable referring to the base class of the current instance of a class.MyBase is commonly used to access base class members that are overridden or shadowed in a derived class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
Which of the following must exist to inherit attributes from a particular class?
A. Public properties
B. A has-a relationship
C. An is-a relationship
D. Static members
A

Public properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
Which type of function can a derived class override?
A. a non-virtual public member function
B. a private virtual function
C. a protected virtual member function
D. a static function
A

a protected virtual member function

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

Class C and Class D inherit from Class B. Class B inherits from Class A. The classes have the methods shown in the following table.

Class      Method
A             m1
B             m2
C             m3
D             m4
All methods have a protected scope.
Which methods does Class C have access to?
A. only m3, m4
B. only m2, m3
C. only ml, m3
D. m1, m3, m3
E. m2, m3, m4
F. m1, m2, m3
A

m1, m2, m3

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

You need to create a property in a class. Consumers of the class must be able to read the values of the property. Consumers of the class must be prevented from writing values to the property.
Which property procedure should you include?
A. Return
B. Get
C. Set
D. Let

A

Get

17
Q
How many parameters can a default constructor have?
A. 0
B. 1
C. 2
D. 3 or more
A

0

18
Q
Which function does Simple Object Access Protocol (SOAP) provide when using Web services?
A. directory of registered Web services
B. communications protocol
C. security model
D. model for describing Web services
A

communications protocol

19
Q
Which term is used to describe small units of text that are stored on a client computer and retrieved to maintain state?
A. trace
B. cookie
C. server transfer
D. cross-page post
A

cookie

HTTP is a stateless protocol. This means that user data is not persisted from one Web page to the next in a Web site. One way to maintain state is through the use of cookies. Cookies store a set of user-specific information, such as a reference identifier for a database record that holds customer information.

20
Q

You are creating a Web application. The application will be consumed by client computers that run a variety of Web browsers.
Which term is used to describe the process of making the application available for client computers to access?
A. Casting
B. Deploying
C. Hosting
D. Virtualization

A

Hosting

21
Q

You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not already reserved by another guest.
Which type of programming should you use to determine whether the room is still available when the request is made?
A. client-side
B. server-side
C. multithreaded
D. batch processing

A

server-side

For room availability, we need to check a database located on a server.

22
Q

You need to group all the style settings into a separate file that can be applied to all the pages in a Web application.
What should you do?
A. Use a Cascading Style Sheet (CSS).
B. Use inline styles.
C. Use an Extensible Markup Language (XML) schema.
D. Use a WebKit.

A

Use a Cascading Style Sheet (CSS).

23
Q

Where must Internet Information Services (IIS) be installed in order to run a deployed ASP. NET application?
A. on the computer that you plan to deploy from
B. on the computer that hosts the application
C. on the Application Layer Gateway Service
D. on the client computers

A

on the computer that hosts the application

24
Q

What is displayed when you attempt to access a Web service by using a Web browser?
A. a listing of methods that are available in the Web service
B. a directory listing of the Web service’s application structure
C. an error page explaining that you have accessed the Web service incorrectly
D. a visual depiction of your preliminary connection to the Web service

A

a listing of methods that are available in the Web service

The server, in response to this request, displays the Web service’s HTML description page.
The Web service’s HTML description page shows you all the Web service methods supported by a particular Web service. Link to the desired Web service method and enter the necessary parameters to test the method and see the XML response.

25
Q

You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not already reserved by another guest.
Which type of programming should you use to determine whether the room is still available when the request is made?
A. functional
B. dynamic
C. in-browser
D. server-side

A

server-side

26
Q

You are developing a web application.
You need to create the following graphic by using Cascading Style Sheets (CSS):

“Prostokąt z zaokrąglonymi rogami, zielony na górze, gradientuje w dół na czarno”

Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.
Hot Area:

For the CSS Style background-image, you should use the value:

  • linear-gradient (to top, green, black);
  • linear-gradient (to bottom, green, black);
  • radial-gradient (green, black);
  • reapiting-linear-gradient (green, black);

For the CSS Style border radius, you should use the value:

  • 10px;
  • 10px, 10px, 10px;
  • inherit;
  • initial;
A

linear-gradient (to bottom, green, black);

10px;

27
Q

You are migrating several HTML pages to your website. Many of these pages contain HTML and tags. Which XHTML document type declaration should you use?

A. “. “”
C. “”
D. “”

A

Option A

28
Q

This question requires that you evaluate the underlined text to determine if it is correct.
When creating a site to utilize message queuing, the “IP address” must be configured to MSMQ.
Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed’’ if the underlined text makes the statement correct.
A. No change is needed
B. protocol
C. host header
D. port

A

protocol

MSMQ is a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner.

29
Q

You need to debug a Windows Service application by using breakpoints.
What should you do?
A. Write all events to an event log.
B. Set the Windows Service status to Paused.
C. Implement the Console.WriteLine method throughout the Windows Service.
D. Use the Attach to Process menu in Microsoft Visual Studio.

A

Use the Attach to Process menu in Microsoft Visual Studio.

30
Q

You are creating a Windows Store application that uses the following gesture:

Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.

The gesture shown in the graphic is called:

  • moving
  • pushing
  • sliding
  • swiping

The surface displayed after the gesture has been completed is the:

  • app bar
  • canvas
  • charms
  • context menu
A

swiping

app bar

31
Q
What does the Console.Error property do within a console-based application?
A. sets the standard error input stream
B. gets the standard error output stream
C. gets the standard error input stream
D. sets the standard error output stream
A

gets the standard error output stream

32
Q

This question requires that you evaluate the underlined text to determine if it is correct.
The default entry point for a console application is the Class method.
Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed’’ if the underlined text makes the statement correct.
A. No change is needed
B. Main
C. Program
D. Object

A

Main

33
Q

This question requires that you evaluate the underlined text to determine if it is correct.
Converting an object to a more general type is called upcasting.
Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed’’ if the underlined text makes the statement correct.
A. No change is needed
B. downcasting
C. interfacing
D. flexing

A

No change is needed

Casting up a hierarchy means casting from a derived object reference to a base object reference.

34
Q
You have a class named Glass that inherits from a base class named Window. The Window class includes a protected method named break().
How should you call the Glass class implementation of the break() method?
A. Window.break();
B. Glass.break();
C. this.break();
D. base.break();
A

this.break();

35
Q

You are developing an application that tracks tennis matches. A match is represented by the following class:

public class Match () {
	public Match() {
		Location = "unknown";
	}
	publicstring Location { get; set; }
	public DateTime? MatchDate { get; set; }
}

A match is created by using the following code:

var match = new Match {
	Location = "north region",
	MatchDate = new DateTime(2013, 4, 14)
};

How many times is the Location property on the newly created Match class assigned?

A. 0
B. 1
C. 2
D. 3

A

2

36
Q

You have a base class named Tree with a friend property named color and a protected property named NumberOfLeaves. In the same project, you also have a class named Person.

Description of Behaviour
Methods in Person class can access the color property : Yes/No
Methods in Person class can access the NumberOfLeaves property : Yes/No
Methods in the Tree class can access all private properties in Person : Yes/No
A

Yes
No
No

friend == internal

37
Q

A linked list has a maximum of 100 nodes: Yes/No
You can add new nodes anywhere in a linked list: Yes/No
A linked list can be sorted: Yes/No

A

No
Yes
Yes

38
Q

This question requires that you evaluate the underlined text to determine if it is correct.
The duplication of code so that modifications can happen in parallel is known as separating.
Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed’’ if the underlined text makes the statement correct.
A. No change is needed
B. branching
C. merging
D. splitting

A

branching