121-163 Flashcards
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
4
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
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.
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
polymorphism
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
No
No
Yes
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
No change is needed
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
No change is needed
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?
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.
Which three items are benefits of encapsulation? (Choose three.) A. maintainability B. flexibility C. restricted access D. inheritance E. performance
maintainability
flexibility
restricted access
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
can be overridden with its own implementation by a derived class
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
serialization
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
Yes
Yes
Yes
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
Application
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
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.
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
stack
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
console-based