Quiz
MTA-Viettel
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (140)
1You 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?- AWindows Service application
- BWindows Forms application
- CDOS batch file
- DTerminate-and-stay-resident (TSR) program
- EWindows Store app
2An 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.- AA. Functional
- BB. Service oriented
- CC. Structured
- DD. Event driven
3How does a console-based application differ from a Windows Forms application?
- AA. Console-based applications require the XNA Framework to run.
- BB. Windows Forms applications do not provide a method for user input.
- CC. Windows Forms applications can access network resources.
- DD. Console-based applications do not display a graphical interface.
4Which type of Windows application presents a parent window that contains child windows?
- AA. Application programming interface (API)
- BB. Single-document interface (SDI)
- CC. Multiple-document interface (MDI)
- DD. Command-line interface (CLI)
5The purpose of a constructor in a class is to:
- AA. Initialize an object of that class.
- BB. Release the resources that the class holds.
- CC. Create a value type.
- DD. Inherit from the base class.
6A 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?- AA. Encapsulation
- BB. Data modeling
- CC. Inheritance
- DD. Data hiding
7Which term is used to describe a class that inherits functionality from an existing class?
- AA. Base class
- BB. Inherited class
- CC. Derived class
- DD. Superclass
8Two 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?- AA. polymorphism
- BB. encapsulation
- CC. superclassing
- DD. overloading
9You create an object of type ANumber. The class is defined as follows.
What is the value of _number after the code is executed?- AA. Null
- BB. 0
- CC. 3
- DD. 7
10You need to allow a consumer of a class to modify a private data member.
What should you do?- AA. Assign a value directly to the data member.
- BB. Provide a private function that assigns a value to the data member.
- CC. Provide a public function that assigns a value to the data member.
- DD. Create global variables in the class.
11You 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?- AA. Internal
- BB. Protected
- CC. Private
- DD. Public
12You 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?- AA. Console-based
- BB. Windows Forms
- CC. Windows Service
- DD. ClickOnce
13You 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?- AA. Windows Forms
- BB. Windows Service
- CC. ASP. NET
- DD. Console-based
14The elements of an array must be accessed by:
- AA. Calling the item that was most recently inserted into the array.
- BB. Calling the last item in the memory array.
- CC. Using an integer index.
- DD. Using a first-in, last-out (FILO) process.
15Simulating the final design of an application in order to ensure that the development is progressing as
expected is referred to as:- AA. Analyzing requirements
- BB. Prototyping
- CC. Software testing
- DD. Flowcharting
16You 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?- AA. 2
- BB. 3
- CC. 6
- DD. 7
17What 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. )- AA. If
- BB. Do. . . While
- CC. For
- DD. While
18You need to evaluate the following expression:
(A>B) AND (C<D)
What is the value of this expression if A=3, B=4, C=4, and D=5?- AA. 0
- BB. 4
- CC. 5
- DD. False
- EE. Null
- FF. True
19You 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?- AA. String
- BB. Float
- CC. Char
- DD. Decimal
20You execute the following code.
What will the variable iResult be?- AA. 0
- BB. 1
- CC. 2
- DD. 3
21The purpose of the Catch section in an exception handler is to:
- AA. Break out of the error handler.
- BB. Conclude the execution of the application.
- CC. Execute code only when an exception is thrown.
- DD. Execute code regardless of whether an exception is thrown.
22You execute the following code.
How many times will the word Hello be printed?- AA. 5
- BB. 6
- CC. 10
- DD. 12
23In the life cycle of an ASP. NET Web page, which phase follows the SaveStateComplete phase?
- AA. PostBack
- BB. Postlnit
- CC. Load
- DD. Render
24You 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?- AA. defaultRedirect="ServerPage. htm"
- BB. redirect="HostPage. htm"
- CC. AutoEvencWireup="true"
- DD. runat="server"
25In this XHTML code sample, what will cause an error?
- AA. All tags are not in uppercase.
- BB. The body tag is missing a background attribute.
- CC. The line break tag is incorrectly formatted.
- DD. The HTML tags do not read XHTML.
26You create an application that uses Simple Object Access Protocol (SOAP).
Which technology provides information about the application's functionality to other applications?- AA. Web Service Description Language (WSDL)
- BB. Extensible Application Markup Language (XAML)
- CC. Common Intermediate Language (CIL)
- DD. Universal Description, Discovery, and Integration (UDDI)
27Which language allows you to dynamically create content on the client side?
- AA. Extensible Markup Language (XML)
- BB. Cascading Style Sheets (CSS)
- CC. Hypertext Markup Language (HTML)
- DD. JavaScript (JS)
28How should you configure an application to consume a Web service?
- AA. Add the Web service to the development computer.
- BB. Add a reference to the Web service in the application.
- CC. Add a reference to the application in the Web service.
- DD. Add the Web service code to the application.
29What are two possible options for representing a Web application within Internet Information Services (IIS)?
(Each correct answer presents a complete solution. Choose two. )- AA. Web site
- BB. Web directory
- CC. Virtual directory
- DD. Application server
- EE. Application directory
30Which language uses Data Definition Language (DDL) and Data Manipulation Language (DML)?
- AA. SQL
- BB. C++
- CC. Pascal
- DD. Java
31A 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?- AA. It reorders the records alphabetically.
- BB. It speeds up query execution.
- CC. It minimizes storage requirements.
- DD. It reorders the records numerically.
32Which language was designed for the primary purpose of querying data, modifying data, and managing
databases in a Relational Database Management System?- AA. Java
- BB. SQL
- CC. C++
- DD. Visual Basic
33You 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?- AA. Isolation
- BB. Normalization
- CC. Integration
- DD. Resolution
34In 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?- AA. Option A
- BB. Option B
- CC. Option C
- DD. Option D
35A data warehouse database is designed to:
- AA. Enable business decisions by collecting, consolidating, and organizing data.
- BB. Support a large number of concurrent users.
- CC. Support real-time business operations.
- DD. Require validation of incoming data during real-time business transactions.
36You 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?- AA. Deactivate
- BB. Leave
- CC. FormClosed
- DD. FormClosing
37Which 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- AA. Windows Service
- BB. Windows Forms
- CC. Console-based
- DD. Batch file
38You 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?- AA. Windows Forms
- BB. Windows Service
- CC. Web-based
- DD. Console-based
39You need to create an application that processes data on a last-in, first-out (LIFO) basis.
Which data structure should you use?- AA. Queue
- BB. Tree
- CC. Stack
- DD. Array
40You 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?- AA. Binary tree
- BB. Stack
- CC. Hashtable
- DD. Queue
41In the application life cycle, the revision of an application after it has been deployed is referred to as:
- AA. Unit testing
- BB. Integration
- CC. Maintenance
- DD. Monitoring
42In which order do the typical phases of the Software Development Life Cycle occur?
- AA. Development, design, requirements gathering, and testing
- BB. Design, requirements gathering, development, and testing
- CC. Design, development, requirements gathering, and testing
- DD. Requirements gathering, design, development, and testing
43You execute the following code.
What will the variable iResult be?- AA. 1
- BB. 2
- CC. 3
- DD. 4
44You execute the following code.
How many times will the word Hello be printed?- AA. 49
- BB. 50
- CC. 51
- DD. 100
45You 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?- AA. For
- BB. While
- CC. Do..While
- DD. For..Each
46The purpose of the Finally section in an exception handler is to:
- AA. Execute code regardless of whether an exception is thrown.
- BB. Conclude the execution of the application.
- CC. Execute code only when an exception is thrown.
- DD. Break out of the error handler.
47You 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?- AA. decimal
- BB. double
- CC. byte
- DD. float
48Your database administrators will not allow you to write SQL code in your application.
How should you retrieve data in your application?- AA. Script a SELECT statement to a file.
- BB. Query a database view.
- CC. Call a stored procedure.
- DD. Reference an index in the database.
49You 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?- AA. Field
- BB. Attribute
- CC. Property
- DD. Entity
50You 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?- AA. Connection timeouts
- BB. Named pipes
- CC. Normalization
- DD. Connection pooling
51Your 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?- AA. Configure the network routers to allow database connections.
- BB. Install the database on each client computer.
- CC. Create a routine that bypasses firewalls by using Windows Management Instrumentation (WMI).
- DD. Establish a connection to the database by using the appropriate data provider.
52You 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?- AA. Vehicle. brake ();
- BB. This. brake ();
- CC. MyBase. brake();
- DD. Truck. brake ();
53Which of the following must exist to inherit attributes from a particular class?
- AA. Public properties
- BB. A has-a relationship
- CC. An is-a relationship
- DD. Static members
54Which type of function can a derived class override?
- AA. a non-virtual public member function
- BB. a private virtual function
- CC. a protected virtual member function
- DD. a static function
55Class C and Class D inherit from Class B. Class B inherits from Class A. The classes have the methods
shown in the following table.
All methods have a protected scope.
Which methods does Class C have access to?- AA. only m3, m4
- BB. only m2, m3
- CC. only ml, m3
- DD. m1, m3, m3
- EE. m2, m3, m4
- FF. m1, m2, m3
56You 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?- AA. Return
- BB. Get
- CC. Set
- DD. Let
57How many parameters can a default constructor have?
- AA. 0
- BB. 1
- CC. 2
- DD. 3 or more
58Which function does Simple Object Access Protocol (SOAP) provide when using Web services?
- AA. directory of registered Web services
- BB. communications protocol
- CC. security model
- DD. model for describing Web services
59Which term is used to describe small units of text that are stored on a client computer and retrieved to
maintain state?- AA. trace
- BB. cookie
- CC. server transfer
- DD. cross-page post
60You 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?- AA. Casting
- BB. Deploying
- CC. Hosting
- DD. Virtualization
61You 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?- AA. client-side
- BB. server-side
- CC. multithreaded
- DD. batch processing
62You 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?- AA. Use a Cascading Style Sheet (CSS).
- BB. Use inline styles.
- CC. Use an Extensible Markup Language (XML) schema.
- DD. Use a WebKit.
63Where must Internet Information Services (IIS) be installed in order to run a deployed ASP. NET
application?- AA. on the computer that you plan to deploy from
- BB. on the computer that hosts the application
- CC. on the Application Layer Gateway Service
- DD. on the client computers
64What is displayed when you attempt to access a Web service by using a Web browser?
- AA. a listing of methods that are available in the Web service
- BB. a directory listing of the Web service's application structure
- CC. an error page explaining that you have accessed the Web service incorrectly
- DD. a visual depiction of your preliminary connection to the Web service
65You 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?- AA. functional
- BB. dynamic
- CC. in-browser
- DD. server-side
66You are migrating several HTML pages to your website. Many of these pages contain HTML <center> and
<font> tags. Which XHTML document type declaration should you use?- AA. Option A
- BB. Option B
- CC. Option C
- DD. Option D
67This 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- AA. No change is needed
- BB. protocol
- CC. host header
- DD. port
68You need to debug a Windows Service application by using breakpoints.
What should you do?- AA. Write all events to an event log.
- BB. Set the Windows Service status to Paused.
- CC. Implement the Console.WriteLine method throughout the Windows Service.
- DD. Use the Attach to Process menu in Microsoft Visual Studio.
69What does the Console.Error property do within a console-based application?
- AA. sets the standard error input stream
- BB. gets the standard error output stream
- CC. gets the standard error input stream
- DD. sets the standard error output stream
70This 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.- AA. No change is needed
- BB. Main
- CC. Program
- DD. Object
71This 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.- AA. No change is needed
- BB. downcasting
- CC. interfacing
- DD. flexing
72You 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?- AA. Window.break();
- BB. Glass.break();
- CC. this.break();
- DD. base.break();
73How many times is the Location property on the newly created Match class assigned?
- AA. 0
- BB. 1
- CC. 2
- DD. 3
74This 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.- AA. No change is needed
- BB. branching
- CC. merging
- DD. splitting
75The following functions are defined:
What does the console display after the following line?
Printer(2);- AA. 210
- BB. 211
- CC. 2101
- DD. 2121
76The throw keyword is used to perform which two actions? (Choose two.)
- AA. stop processing of the code
- BB. move error handling to a separate thread
- CC. raise exceptions
- DD. re-throw exceptions as a different type
77Which three phrases are advantages of connection pooling? (Choose three.)
- AA. reduces time to create a connection
- BB. requires no configuration
- CC. reduces load on the server
- DD. improved scalability
- EE. improved performance
78You are creating a database for a student directory. The Students table contains the following fields:
Which statement will retrieve only the first name, last name, and telephone number for every student listed
in the directory?- AA. WHERE Students SELECT *
- BB. SELECT firstName, lastName, telephoneNumber FROM Students
- CC. SELECT firstName, lastName, telephoneNumber IN Students
- DD. SELECT * FROM Students
- EE. WHERE Students SELECT firstName, lastName, telephoneNumbe
79This question requires that you evaluate the underlined text to determine if it is correct.
The benefit of using a transaction when updating multiple tables is that the update cannot fail.
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.- AA. No change is needed
- BB. succeeds or fails as a unit
- CC. finishes as quickly as possible
- DD. can be completed concurrently with other transactions
80What are two advantages of normalization in a database? (Choose two)
- AA. prevents data inconsistencies
- BB. reduces schema limitations
- CC. minimizes impact of data corruption
- DD. decreases space used on disk
81This question requires that you evaluate the underlined text to determine if it is correct.
Unit testing is the final set of tests that must be completed before a feature or product can be considered
finished.
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.- AA. No change is needed
- BB. User acceptance
- CC. System
- DD. Integration
82You need to create a stored procedure that passes in a person's name and age.
Which statement should you use to create the stored procedure?- AA. Option A
- BB. Option B
- CC. Option C
- DD. Option D
83You have a SQL Server database named MyDB that uses SQL Server Authentication.
Which connection string should you use to connect to MyDB?- AA. Data Source=MyDB; UserID=username; Password=P@sswOrd; Initial Catalog=Sales
- BB. Data Source=MyDB; Integrated Security=SSPI; Initial Catalog=Sales
- CC. Data Source=MyDB; Integrated Security=True; Initial Catalog=Sales
- DD. Data Source=MyDB; Trusted_Connection=True; MultipleActiveResultSets=True; Initial Catalog=Sales
84You are developing a database that other programmers will query to display race results.
You need to provide the ability to query race results without allowing access to other information in the
database.
What should you do?- AA. Disable implicit transactions.
- BB. place the query into a stored procedure.
- CC. Create an index on the result table.
- DD. Add an AFTER UPDATE trigger on the result table to reject updates.
85This question requires that you evaluate the underlined text to determine if it is correct.
A piece of text that is 4096 bytes or smaller and is stored on and retrieved from the client computer to
maintain state is known as a ViewState.
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.- AA. No change is needed
- BB. cookie
- CC. form post
- DD. QueryString
86This question requires that you evaluate the underlined text to determine if it is correct.
Internet Information Services (IIS) must be installed on the client computers in order to run a deployed
ASP.NET application.
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.- AA. No change is needed
- BB. computer that hosts the application
- CC. computer that you plan to deploy from
- DD. Application Layer Gateway Service
87Which programming language is characterized as client-side, dynamic and weakly typed?
- AA. JavaScript
- BB. HTML
- CC. ASP.NET
- DD. C#
88When a web service is referenced from a client application in Microsoft Visual Studio, which two items are
created? (Choose two.)- AA. a stub
- BB. a.wsdl file
- CC. a proxy
- DD. a .disco file
89All objects in .NET inherit from which item?
- AA. the System.Object class
- BB. a value type
- CC. a reference type
- DD. the System.Type class
90You have a class with a property.
You need to ensure that consumers of the class can write to the value of the property.
Which keyword should you use?- AA. value
- BB. add
- CC. get
- DD. set
91You are creating an application that presents the user with a Windows Form.
Which event is triggered each time the Windows Form receives focus?- AA. Enter
- BB. Paint
- CC. Load
- DD. Activated
92What are the three basic states that a Windows service can be in? (Choose three.)
- AA. halted
- BB. running
- CC. stopped
- DD. paused
- EE. starting
93You have a Windows Service running in the context of an account that acts as a non-privileged user on the
local computer. The account presents anonymous credentials to any remote server.
What is the security context of the Windows Service?- AA. LocalSystem
- BB. User
- CC. NetworkService
- DD. LocalService
94This question requires that you evaluate the underlined text to determine if it is correct.
Arguments are passed to console applications as a Hashtable object.
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.- AA. No change is needed
- BB. String Array
- CC. StoredProcedureCollection
- DD. Dictionary
95You run the following code:
What is the value of result when the code has completed?- AA. 0
- BB. 10
- CC. 20
- DD. 30
96This question requires that you evaluate the underlined text to determine if it is correct.
To minimize the amount of storage used on the hard drive by an application that generates many small
files, you should make the partition as small as possible.
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.- AA. No change is needed
- BB. file allocation table
- CC. block size
- DD. folder and file names
97You are designing a Windows Store application.
You need to design the application so that users can share content by connecting two or more devices by
physically tapping the devices together.
Which user experience (UX) guideline for Windows Store applications should you use?- AA. Share and data exchange
- BB. location-awareness
- CC. device-awareness
- DD. proximity gestures
98You have a website that includes a form for usemame and password.
You need to ensure that users enter their username and password. The validation must work in all
browsers.
Where should you put the validation control?- AA. in both the client-side code and the server-side code
- BB. in the client-side code only
- CC. in the Web.config file
- DD. in the server-side code only
99Which service can host an ASP.NET application?
- AA. Internet Information Services
- BB. Cluster Services
- CC. Remote Desktop Services
- DD. Web Services
100This question requires that you evaluate the underlined text to determine if it is correct.
A table whose attributes depend only on the primary key must be at least second normal form.
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.- AA. No change is needed
- BB. first
- CC. third
- DD. fourth
101You have a table named ITEMS with the following fields:
ID (integer, primary key, auto generated)
Description (text)
Completed (Boolean)
You need to insert the following data in the table:
"Cheese", False
Which statement should you use?- AA. INSERT INTO ITEMS (ID, Description, Completed) VALUES (1, 'Cheese', 0)
- BB. INSERT INTO ITEMS (Description, Completed) VALUES ('Cheese', 1)
- CC. INSERT INTO ITEMS (10, Description, Completed) VALUES (NEWID(), 'Cheese', 6)
- DD. INSERT INTO ITEMS (Description, Completed) VALUES ('Cheese', 0)
102Which three are valid SQL keywords? (Choose three.)
- AA. GET
- BB. WHAT
- CC. FROM
- DD. SELECT
- EE. WHERE
103This question requires that you evaluate the underlined text to determine if it is correct.
The bubble sort algorithm steps through the list to be sorted, comparing adjacent items and swapping them
if they are in the wrong order
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.- AA. No change is needed
- BB. merge
- CC. library
- DD. insertion
104Which two types of information should you include in an effective test case? (Choose two.)
- AA. the expected result from testing the case
- BB. multiple actions combined as a single step to test the case
- CC. any pre-conditions necessary to test the case
- DD. the stakeholders who originated the test case
105You 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?- AA. 2
- BB. 3
- CC. 4
- DD. 5
106This 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.- AA. No change is needed
- BB. unboxing
- CC. interfacing
- DD. mapping
107The 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?- AA. multiple inheritance
- BB. polymorphism
- CC. data hiding
- DD. encapsulation
108This 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.- AA. No change is needed
- BB. normalization
- CC. a database management system (DBMS)
- DD. metacontent
109You are reviewing a design for a database. A portion of this design is shown in the exhibit. Note that you
may choose to view 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 relationship between Customer and Order?- AA. many-to-many
- BB. one-to-many
- CC. one-dimensional
- DD. one-to-one
- EE. multi-dimensional
110This 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.- AA. No change is needed
- BB. joins
- CC. grouping
- DD. ordering
111You 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.
20019535C3F31C49C9E768B2921390F7
Which data type should you use to record the student's preferred date and time?- AA. uLong?
- BB. DateTime
- CC. SByte
- DD. DateTimeOffset?
112Which three items are benefits of encapsulation? (Choose three.)
- AA. maintainability
- BB. flexibility
- CC. restricted access
- DD. inheritance
- EE. performance
113This 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.- AA. No change is needed
- BB. can be overridden with its own implementation by a derived class
- CC. must be overridden in any non-abstract class that directly inherits from that class
- DD. cannot be overridden with its own implementation by a derived class
114This 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.- AA. No change is needed
- BB. serialization
- CC. decoding
- DD. encoding
115You 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?- AA. Session
- BB. ViewState
- CC. Application
- DD. Cookies
116This 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.- AA. No change is needed
- BB. Server.Transfer method
- CC. Server.Execute method
- DD. meta http-equiv="refresh" tag
117You are creating an application for a priority help desk center. The most recent call must be handled first.
Which data structure should you use?- AA. queue
- BB. hashtable
- CC. stack
- DD. binary tree
118You 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?- AA. Directx
- BB. Windows Service
- CC. console-based
- DD. Windows Store app
119You execute the following code.
How many times will the word Hello be printed?- AA. 5
- BB. 6
- CC. 10
- DD. 12
120You execute the following code.
What will the variable iResult be?- AA. 0
- BB. 1
- CC. 2
- DD. 3
121You 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?- AA. Decimal
- BB. Char
- CC. String
- DD. Single
122You 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?- AA. Protected
- BB. Private
- CC. Public
- DD. Friend
123You create an object of type ANumber. The class is defined as follows.
The code is executed as follows.
Dim mynumber As ANumber = new ANumber(3);
What is the value of _number after the code is executed?- AA. Null
- BB. 0
- CC. 3
- DD. 7
124You are creating an application that presents users with a graphical interface in which they computers that
do not have network connectivity.
Which type of application should you choose?- AA. ClickOnce
- BB. Windows Service
- CC. Windows Forms
- DD. Console-based
125You 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?- AA. Mybase.brake ()
- BB. Truck.brakef()
- CC. Vehicle.brake()
- DD. Me.brake ()
126Which type of function can a derived class override?
- AA. A Protected Overridable member function
- BB. A Shared function
- CC. A Private Overridable function
- DD. A non-overridable public member function
127Class C and Class D inherit from Class B. Class B inherits from Class A. The classes have the methods
shown in the following table.
All methods have a protected scope.
Which methods does Class C have access to?- AA. only m1, m3
- BB. only m2, m3
- CC. m1, m3, m4
- DD. m1, m2, m3
- EE. m2, m3, m4
- FF. only m3, m4
128You execute the following code.
How many times will the word Hello be printed?- AA. 49
- BB. 50
- CC. 51
- DD. 100
129You 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?- AA. Decimal
- BB. Single
- CC. Byte
- DD. Double
130You 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?- AA. uLong?
- BB. DateTimeOffset?
- CC. SByte
- DD. Date
131You execute the following code.
What will the variable iResult be?- AA. 1
- BB. 2
- CC. 3
- DD. 4
132The following functions are defined:
What does the console display after the following line?- AA. 210
- BB. 211
- CC. 2101
- DD. 2121
133How does a console-based application differ from a Windows Store app?
- AA. Windows Store apps do not provide a method for user input
- BB. Console-based applications do not display a graphical interface.
- CC. Windows Store apps can access network resources.
- DD. Console-based applications require the XNA Framework to run.
134You are developing an application that tracks tennis matches. A match is represented by the following
class:
A match is created by using the following code:
How many times is the Location property on the newly created Match class assigned?- AA. 0
- BB. 1
- CC. 2
- DD. 3
135You 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?- AA. Glass.break()
- BB. Window.break()
- CC. Me.break()
- DD. MyBase.break()
136You run the following code:
What is the value of result when the code has completed?- AA. 0
- BB. 10
- CC. 20
- DD. 30
137You create an object of type ANumber. The class is defined as follows.
The code is executed as follows.
What is the value of number after the code is executed?- AA. Null
- BB. 0
- CC. 3
- DD. 7
138You have a table named ITEMS with the following fields:
ID (integer, primary key. auto generated)
Description (text)
Completed (Boolean)
You need to insert the following data in the table:
"Cheese", False
Which statement should you use?- AA. INSERT INTO ITEMS (Description, Completed) VALUES ('Cheese', 1)
- BB. INSERT INTO ITEMS (ID, Description, Completed) VALUES (NEWID(), 'Cheese', 0)
- CC. INSERT INTO ITEMS (ID, Description, Completed) VALUES (1, 'Cheese", 0)
- DD. INSERT INTO ITEMS (Description, Completed) VALUES ('Cheese', 0)
139You run the following code.
What will the value of the variable iResult be?- AA. 1
- BB. 2
- CC. 3
- DD. 4
140This question requires that you evaluate the underlined text to determine if it is correct.
The application type should be ClickOnce for an application that presents users with a graphical interface in
which they can enter data, and must run on computers that do not have network connectivity.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed”. If
the statement is incorrect, select the answer choice that makes the statement correct.- AA. Windows Service
- BB. Windows Presentation Foundation
- CC. console-based
- DD. No change is needed
Information
- Description
- Coding Quiz on MTA-Viettel, created by Xuân Hiếu Lê on 06/03/2021.
- Author
- Xuân Hiếu Lê
- Language
- English
- Views
- 38
- History
- Created on 6 Mar 2021 · updated on 6 Mar 2021
- Tags
- Rating
- No ratings yet Rate this quiz