Database T2
Database T2
You are planning to develop a new software system for your organization. The technical
writer
needs to be responsible for developing system manuals and help files.
There are four main types of SQL statements that help you manipulate SQL Server data.
He INSERT
statement allows you to add new data to a database
You are designing database for a new Web application. You need to identify appropriate
relational database structure to satisfy business requirements. Which of the following
activities should you not perform as part of the design process?
Write stored procedures.
Your company decides they need to develop a website to gather enough user interest.
Which of the following should you contact?
content developer
You are developing a new application that optimizes the processing of a manufacturing
plant’s operations. You need to implement a data structure that works as a “buffer” for
overflow capacity. When the manufacturing capacity is available, the items in the buffer
need to be processed, in the order, in which they were added to the buffer. Which data
structure should you use to implement such buffer?
queue
You are developing a data-entry application that receives user input in multiple data
fields. The application allows users to enter the data, either by using a keyboard, or by
using a bar-code scanner. When a code is entered, a picture of the product appears
onscreen. The application also needs to log its operation to a console window.
Occasionally, the operator will look at the console window, to monitor communication
with the scanner. What project should you choose to create such an application?
a Windows Forms application project with the Output type set to Console Application
In order for a table to be in the first normal form (1NF), none of the columns in the table
should have multiple values in the same row of data
You are developing a Web page for a medium-sized business. You want to separate the
formatting and layout of the page from its content. Which of the following technologies
should you use, to define the formatting and layout of the page content?
Cascading Style Sheets (CSS)
Which of the following options describes self-contained data structures that consist of
properties, methods, and events?
Objects
You are developing an application that receives orders over the Internet via Electronic
Data Interface (EDI). The application needs to run constantly in the background and wait
for orders. There is no user interface. The application writes messages to the Windows
application event log. The application must continue to run even after a user logs off
from the computer. Which type of application should you develop for this requirement?
Windows Service application
The Contains operation allows you to determine whether a particular item exists in the
queue.
You are writing a C# program and need to select an appropriate repetition structure for
your requirement. You need to make sure that the test for the termination condition is
performed at the bottom of the loop rather than at the top. Which repletion structure
should you use?
The do-while statement
ASP.NET developers must have a good understanding of the page life cycle so that they
can write code that is executed at exactly the desired stage of page processing. Looking
at the different life cycle stages and their associated events, what event occurs at the
Start Stage?
PreInit
Properties allow you to access class data in a safe and flexible way. How many accessors
do a property have?
Two
Arrange the various activities of an application lifecycle, in the order in which they are
likely to occur:
Requirements analysis, design, development, testing, and maintenance
You are C# developer who is developing a Windows application. You need to provide
derived classes, the ability to share common functionality, with base classes, but still
define their own unique behaviour. Which object-oriented programming concept should
you use to accomplish this functionality?
polymorphism
You are developing an ASP.NET Web page that displays status of a shipment. You need
to write some code that will change the Web page’s appearance and assign values to
some controls. Where should you put this code?
In a method that handles the Load event
What type of documents can a DataSet read and write? XML documents
You are planning to develop a new software system for your organization. You need to
review the plans, models, and architecture, for how the software will be implemented.
Of which of the following activities should you review the output?
design
You are planning to develop a new software system for your organization. You need to
review the system’s technical blueprint. Which of the following participants is
responsible for providing the technical blueprint?
architect
You are developing a new Web page. You need to create hyperlinks that point to other
pages on the World Wide Web. Which of the following methods should you use to
create these hyperlinks on your Web page?
the HREF attribute of the <A> tag
Looking at the different life cycle stages of ASP.NET and their associated events, what
event occurs at the Initialization Stage?
Init
The Dequeue operation removes the current element at the head of the queue and sets
the head to point to the next element.
The application you are developing needs to write data to a flat file that include items
such as a five-digit integer key, followed by a 20-character customer name, followed by
two date and time fields. Your solution should be as fast as possible and should create,
the smallest size data file. Which of the following classes should you use?
BinaryWriter
Which of the following are special class methods that are executed when a new instance
of a class is created?
Constructors
In order for a table to be in the third normal form (3NF), there is no functional
dependency between non-key attributes
What are data fields or local variables whose value cannot be modified?
Constants
There are many ways in which you can send queries to a SQL Server. Which of the
following is NOT a method, which can be used to send queries to an SQL Server?
Java application
Which of the following loop repeatedly executes a block of statements until a specified
Boolean expression evaluates to false, testing the condition at the bottom of the Loop?
do-while loop
Data type specifies the type of data that you work with in a program?
You are developing a new application that optimizes the processing of a warehouse’s
operations. When the products arrive, they are stored on warehouse racks. To minimize
the time, it takes to retrieve an item, the items that arrive last are the first to go out.
You need to represent the items that arrive and leave the warehouse in a data
structure. Which data structure should you use to represent this situation?
stack
There are four main types of SQL statements that help you manipulate SQL Server data.
The UPDATE
statement allows you to modify existing data in a database
Inheritance enables you to create new classes that reuse, extend, and modify the
functionality defined in existing classes.
Polymorphism is the ability of derived classes to share common functionality with base
classes but still define their own unique behaviour.
You are developing a restaurant locator Web site in ASP.NET and C#. As users browse
through the Web site, each of the Web pages must display a list of the recently viewed
restaurant in the lower left corner. You want this information to be available across Web
pages and browser restarts, but do not want to use, server-side resources, to
accomplish this. Which of the following state management techniques, will help you
accomplish this requirement with minimum effort?
cookies
if-else statement allows your program to perform one action if the Boolean expression
evaluates to true and a different action if the Boolean expression evaluates too false
A Namespace allows you to organize code and create unique class names.
Entity-relationship diagrams (ERDs) are used to model entities, their attributes, and the
relationships among entities.
The basic building blocks of an ERD are entity, attribute, and relationship. An Entity is a
construct for a physical object or a concept
What is the most likely step you would perform when adding a node between two
existing nodes in a singly linked list?
Modify the link of the node before the new node to point to the new node
During which stage of the Application Lifecycle Management (ALM) process is a new
software application need identified?
Inception
You have a class called `Car` that has a method `StartEngine()`. How would you describe
the `Car` class in terms of object-oriented programming concepts?
The `Car` class is a blueprint that defines properties and behaviors of a car.
How can you modify the Rectangle class to allow external access to the length and width
values while maintaining encapsulation?
Define public properties that manage access to these fields.
When sorting a list using BubbleSort, what is the best indicator that the algorithm has
finished sorting?
The algorithm completes a pass without making any swaps
Given the requirement to iterate over each element of an array int[] numbers = {1, 2, 3,
4, 5}; , which loop is most appropriate?
foreach loop
If you were tasked with ensuring that a Web service could provide information about its
methods and the types it can process, what would you include in the service's design?
A detailed WSDL file
How would you handle a situation where a base class has an abstract method that
needs to be implemented in a derived class?
Override the abstract method in the derived class.
If you encounter a scenario where remote users cannot access your Web application
after deployment, which IIS feature would you investigate first to troubleshoot the
issue?
Virtual directory mappings
What role does Structured Query Language (SQL) play in relational databases?
It defines and manipulates data in relational databases
Given the declaration float salary = 35000.50f; what is the most appropriate data type
for storing this value?
float
What is the main difference between a method with a void return type and one with a
specific return type?
Methods with a void return type do not return any value.
Which symbol in a flowchart is used to represent a decision point with multiple exits?
Decision
SELECT SQL statement would you use to retrieve data from a database?
How does a web browser interact with a web server to display a webpage?
The browser sends an HTTP request, and the server responds with the requested web
page
The Testing phase of ALM involves verifying that a software system meets its specified
requirements before it is released to customers
A foreign key in the context of relational databases is where a column in one table that
refers to the primary key in another table
The primary role of the Page class in an ASP.NET web application is It provides methods
and properties to control how a page request is processed
If you need to store a collection of 100 integers, an array data structure would be most
appropriate
Given that arrays store elements in contiguous memory locations, which scenario best
demonstrates the performance limitation of an array in a .NET application?
You need to frequently remove elements from the middle of an array
Which method is used to persist changes made in a DataSet back to the database?
AcceptChanges