Vous êtes sur la page 1sur 4

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?

(answer link: https://msdn.microsoft.com/en-us/library/ms173121.aspx )

--================================

using System;

public class Match

--=============================================================

You 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?

--===================================================
Document Structure
XHTML DOCTYPE is mandatory
The xmlns attribute in �html� is mandatory
�html�, �head�, �title�, and �body� are mandatory

XHTML Elements
XHTML elements must be properly nested
XHTML elements must always be closed
XHTML elements must be in lowercase
XHTML documents must have one root element

XHTML Attributes
Attribute names must be in lower case
Attribute values must be quoted
Attribute minimization is forbidden

--============================================
IS-A Relationship :

This refers to inheritance or implementation.


Expressed using keyword �extends�.
Main advantage is code reusability.
--==========================
HAS-A Relationship

Has-A means an instance of one class �has a� reference to an instance of another


class or another instance of same class.
It is also known as �composition� or �aggregation�.
There is no specific keyword to implement HAS-A relationship but mostly we are
depended upon �new� keyword.

YIELD RETURN YIELD BREAK

-=============

You are creating an application that presents the user with a Windows Form. Which
event is triggered each time the Windows Form receives focus?

--===========
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?
https://msdn.microsoft.com/en-us/library/ms173121.aspx )

--=============

Blackbox Testing > Test untuk memastikan bahwa project benar2 jalan secara
keseluruhann.

WhiteBox Testing > Test untuk memastikan bahwa project benar2 jalan secara detail
(semua method berfungsi) dan bisa lihat source code

--===================
The switch statement allows multi-way branching. In many cases, using a switch
statement can simplify a complex combination of if-else statements.

The while loop repeatedly executes a block of statements until a specified Boolean
expression evaluates to false.

The do-while loop repeatedly executes a block of statements until a specified


Boolean expression evaluates to false. The do-while loop tests the condition at the
bottom of the loop

The for loop is especially useful for creating iterations that


must execute a specified number of times.

The foreach loop is useful for iterating through the elements of a collection.

-============================
A namespace allows you to organize code and create unique class names

Events are a way for a class to notify other classes or objects when something of
interest
happens. The class that sends the notification is called a publisher of the event.
The class
that receives the notification is called the subscriber of the even

Important keywords:
� base: Used to access members of the base class from within a derived class.
� virtual: Allows a method�s implementation to be overridden in a derived class.
� sealed: When applied to a class, prevents other class from inheriting from it;
when applied to a member, prevents that member from being overridden by other
classes.
� new: When used as a modifier, this hides a base class member; the new member
replaces the implementation in the base class. Note: This is different than the new
operator used to instantiate an object!

--===============================
array: A list of data values or objects, all of the same type, any element of which
can be referenced by an expression consisting of the array name followed by an
indexing expression.
� linked list: A list of nodes or elements of a data structure connected by
pointers. Linked lists are great for collections that require many insertions in
the middle of the list because such insertions simply
require updating a couple of pointers

--===========================
The BubbleSort algorithm uses a series of comparison and swap operations to
arrange the
elements of a list in the correct order.
� The QuickSort algorithm uses partitioning and comparison operations to arrange
the
elements of a list in the correct order

--============

Unit testing: Unit testing verifies the functionality of a unit of code. For
example, a unit
test may assess whether a method returns the correct value. Unit testing is white-
box
testing, and it is frequently done by the developer who is writing the code. Unit
testing
often uses an automated tool that can simplify the development of cases and also
keep
track of whether a code modification causes any of the existing unit tests to fail.
Visual
Studio has built-in support for unit testing. You can also use open-source tools
such as
NUnit to automate unit tests for the .NET Framework code.

� Integration testing: Integration testing assesses the interface between software


components. Integration testing can be performed incrementally as the components
are being

System testing: System testing is the overall testing of the software system. At
this point,
all the system components are developed and are working together and with any
external
systems.
� Acceptance testing: This level of testing is often performed by the customers
themselves.
There are generally two levels of acceptance testing prior to broad release of a
product:
alpha testing and beta testing. Alpha testing is performed by a limited group of
users,
and it is an opportunity to provide an early look at the product to the most
important
customers and gather feedback. Alpha releases may miss some features and generally
lack
many nonfunctional attributes such as performance. In the next level of testing,
beta
testing, you release the product to a wider audience of customers and solicit
feedback.
In terms of functionality, the beta release of the software is very close to the
final release.
However, the development teams might still be working on improving performance and
fixing known defects.
� Regression testing: As the defects in a software application are reported and
fixed, it is
important to make sure that each new fix doesn�t break anything that was previously
working. This is where regression testing comes in handy. With every new fix,
software
testers usually run a battery of regression tests to make sure that each
functionality that
was already known to work correctly is still working

--=================

The abstract classes provide a common definition of a base class that can be shared
by
multiple derived classes.

The sealed classes, on the other hand, provide complete functionality but cannot be
used as base classes.

Vous aimerez peut-être aussi