0% found this document useful (0 votes)
3 views

Database T2

Uploaded by

alyssajagroop
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Database T2

Uploaded by

alyssajagroop
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

A flowchart is a graphical representation of an algorithm.

A switch statement allows multi-way branching

Algorithm refers to a method for solving problems

if statement will execute a given sequence of statements only if the corresponding


Boolean expression evaluates to true

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

A database is an organized collection of interrelated data and a (DBMS) is software that


organizes databases.

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)

As opposed to a queue, a stack is what type of data structure?


LIFO

Variables provides temporary storage during the execution of a program?

What allows a set of precise instructions, in order to complete a task? Computer


program
C# is a popular high-level programming language that allows you to write computer
programs in a human-readable format

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.

Which of the following statements represents an explanation of virtual directory?


an alias that maps to a physical directory on the Web server

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

Which of the following loops, combines the three elements of iteration—the


initialization expression, the termination condition expression, and the counting
expression—into a more readable code?
for loop

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

A stored procedure is a set of SQL statements that is stored in a database. Stored


procedures can be used by multiple applications.

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

WSDL stands for Web services description language

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.

A Web site is a container of applications and virtual directories

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

A DataSet is an in-memory representation of relational data.

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

A flat file usually contains one rows of data per line

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

How do you create a Windows service in Visual Studio?


Use the Windows Service application template

Inheritance enables you to create new classes that reuse, extend, and modify the
functionality defined in existing classes.

Decision structures introduces the decision-making ability into a program?

Polymorphism is the ability of derived classes to share common functionality with base
classes but still define their own unique behaviour.

Recursion is a programming technique that causes a method to call itself in order to


compute a result.

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.

Which of the following is not a part of the database design process?


Map the entities: Start by creating a table for each entity set in the diagram. The
attributes will become columns. Be sure to set the primary key attribute(s) to the
primary key column(s) for the table.
The Enqueue operation first checks whether there is enough capacity available in the
queue to add one more item. If capacity is available, the item is added to the tail end of
the queue.

The basic building blocks of an ERD are entity, attribute, and relationship. An Entity is a
construct for a physical object or a concept

Polymorphism considered a key concept in object-oriented programming because It


allows objects of different classes to be treated as objects of a common superclass,
enabling flexible and reusable code.

Which of the following scenarios demonstrates an appropriate use of a stack data


structure?
Keeping track of function calls in a recursive algorithm

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

Given the following scenario:

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

Which of the following best describes the purpose of an algorithm in programming?


A set of precise steps to solve a problem

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 an object in the context of a class?


A unique instance of a class

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 feature allows console-based applications to create more powerful commands?


The use of pipes and filters to pass outputs as inputs to other commands

Which symbol in a flowchart is used to represent a decision point with multiple exits?
Decision

How does the StartType property affect a Windows service?


It specifies whether the service starts automatically, manually, or is disabled

SELECT SQL statement would you use to retrieve data from a database?

Data normalization aim to achieve in a relational database is to eliminate data


anomalies and ensure data integrity

Given the code snippet if (age >= 18) Console.WriteLine("Eligible to vote");

What will be printed if age = 20?


"Eligible to vote"

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

In relational database design, what is the purpose of a primary key?


To uniquely identify each row of data in a table

Which method is used to persist changes made in a DataSet back to the database?
AcceptChanges

You might also like