121-163 Flashcards

1
Q

You are developing a webpage that enables students to manage races.
The webpage will display two lists: past races and upcoming races. The page also contains a sidebar with contact information and a panel with social media settings that can be edited. Race results can be shared on social media.
How many components will be on the webpage?
A. 2
B. 3
C. 4
D. 5

A

4

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

This question requires that you evaluate the underlined text to determine if it is correct.
Converting a value type to a reference type in an object is called boxing.
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. unboxing
C. interfacing
D. mapping

A

No change is needed

Boxing is an implicit conversion of a Value Types (C# Reference) to the type object or to any interface type implemented by this value type.

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

The Dog class and the Cat class inherit from the Animal class. The Animal class includes a breathe() method and a speak() method. If the speak() method is called from an object of type Dog, the result is a bark. If the speak() method is called from an object of type Cat, the result is a meow.
Which term is used to describe this object-oriented concept?
A. multiple inheritance
B. polymorphism
C. data hiding
D. encapsulation

A

polymorphism

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

The “is a “ relationship between classes refers to composition: Y/N

The “has a” relationship between classes refers to inheritance: Y/N

Both composition and inheritance allow you to create sub-objects: Y/N

A

No
No
Yes

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

This question requires that you evaluate the underlined text to determine if it is correct.
A data dictionary that describes the structure of a database is called metadata.
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. normalization
C. a database management system (DBMS)
D. metacontent

A

No change is needed

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

This question requires that you evaluate the underlined text to determine if it is correct.
To improve performance, a SQL SELECT statement should use indexes.
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. joins
C. grouping
D. ordering

A

No change is needed

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

You are building a web application that enables international exchange students to schedule phone calls with their prospective schools.
The application allows students to indicate a preferred date and time for phone calls. Students may indicate no preferred time by leaving the date and time field empty. The application must support multiple time zones.
Which data type should you use to record the student’s preferred date and time?
A. uLong?
B. DateTime
C. SByte
D. DateTimeOffset?

A

DateTimeOffset?

datetimeoffset: Defines a date that is combined with a time of a day that has time zone awareness and is based on a 24-hour clock.
Incorrect:
DateTime: Defines a date that is combined with a time of day with fractional seconds that is based on a 24-hour clock. sByte: The sbyte keyword indicates an integral type that stores values in the range of -128 to 127.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
Which three items are benefits of encapsulation? (Choose three.)
A. maintainability
B. flexibility
C. restricted access
D. inheritance
E. performance
A

maintainability
flexibility
restricted access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
This question requires that you evaluate the underlined text to determine if it is correct.
When a base class declares a method as virtual, the method is hidden from implementation bv a derived class.
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. can be overridden with its own implementation by a derived class
C. must be overridden in any non-abstract class that directly inherits from that class
D. cannot be overridden with its own implementation by a derived class
A

can be overridden with its own implementation by a derived class

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

This question requires that you evaluate the underlined text to determine if it is correct.
The process of transforming compiled C# code into an XML string for a web service is known as deserialization.
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. serialization
C. decoding
D. encoding

A

serialization

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

Within an XHTML document the XHTML DOCTYPE declaration is mandatory: Y/N

Withim an XHTML document, the XML namespace attribute in the HTML tag is mandatory: Y/N

Within an XHTML document the HTML head, title, and body tags are mandatory: Y/N

A

Yes
Yes
Yes

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

You have a Microsoft ASP.NET web application.
You need to store a value that can be shared across users on the server.
Which type of state management should you use?
A. Session
B. ViewState
C. Application
D. Cookies

A

Application

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

This question requires that you evaluate the underlined text to determine if it is correct.
The Response.Redirect method is used to transfer processing of the current page to a new page, and then return processing back to the calling page once processing of the new page has completed.
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. Server.Transfer method
C. Server.Execute method
D. meta http-equiv=”refresh” tag

A

Server.Execute method

The Execute method calls an .asp file, and processes it as if it were part of the calling ASP script. The Execute method is similar to a procedure call in many programming languages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
You are creating an application for a priority help desk center. The most recent call must be handled first.
Which data structure should you use?
A. queue
B. hashtable
C. stack
D. binary tree
A

stack

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

You plan to create an application for your company. The application will run automated routines and write the results to a text-based log file. Little or no user interaction is required.
Security requirements on the host computers prevent you from running applications on startup, and users must be able to see the status easily on the screen. The host computers also have limited memory and monitors that display only two colors. These computers will have no network connectivity.
Which type of application should you use for this environment?
A. Directx
B. Windows Service
C. console-based
D. Windows Store app

A

console-based

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
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. Protected
B. Private
C. Public
D. Friend
A

Protected

17
Q

You are building a web application that enables international exchange students to schedule phone calls with their prospective schools.
The application allows students to indicate a preferred date and time for phone calls. Students may indicate no preferred time by leaving the date and time field empty. The application must support multiple time zones.
Which data type should you use to record the student’s preferred date and time?
A. uLong?
B. DateTimeOffset?
C. SByte
D. Date

A

DateTimeOffset?