SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
C# Programming Basics
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. A method that is called whenever an Object is created. The method uses the same name as the Class.
Protected Access Modifier
Program
Constructor
Precedence
2. Contains the class definitions that allow access to the functionality provided by .NET.
csc.exe
Program
Framework Class Library (FCL)
Assignment Operator
3. Used to display text that end user does not need to edit.
Protected Access Modifier
Label
Constant
Strong Typing
4. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.
Namespace
short - Size
Stack
Boolean Operator
5. Allows the definition of a Class to span multiple files (within the same Project)
Partial Class Modifier
Relational Operator
Identifiers
Textbox
6. Text as Unicode characters
Int64 - Size
FCL
References (Visual Studio Solution
String (or string)
7. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
Operator
Abstract Class Modifier
Framework Class Library (FCL)
Conditional Operator
8. Extra information within a method
W.P.F
Parameter aka Argument
ushort - .NET alias
Visual Studio Solution
9. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Sealed Class
Window.xaml.cs
Console Application
Variable (C# requirements)
10. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
Statement
long - Size
Static Class
decimal - .NET alias
11. Rules defining or outlining the format and construction of statements. Semantics is what statements actually DO Syntax are RULES for how to lay statements out. Example syntax rule; All statements must end in a semicolon.
csc.exe
Syntax
C#
Variable
12. (== or !=)
Equality Operator
Unary Operator
Private Access Modifier
If Statement
13. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
ushort - .NET alias
Protected Internal Access Modifier
Expression
csc.exe
14. Represents date and time data with a 100 ns resolution
ushort - Size
Statement
DateTime
Variable
15. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
Assembly
sbyte - Size
Primitive
short - Size
16. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
Stack
JITer
Abstraction
Strong Typing
17. System.UInt32
Expression
uint - .NET alias
returnType methodName (parameterList)
Primitive
18. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Private Access Modifier
Encapsulation
Primitive
Inheritance
19. A Class that can only have Static Members
Variable (C# requirements)
Static Class
Partial Method Modifier
Strong Typing
20. Word that stores a value. Storage location that holds a value. Type and name of variable must be declared in a statement. Must be explicitly declared before use. Uses CamelCase notation.
Object
csc.exe
Variable
r
21. Introduces a new class. Marked by curly brackets { }
short - Size
Partial Method Modifier
Class Statement
Equality Operator
22. Encapsulation is the process of providing access to an object only through it's messages while keeping the details private. Encapsulation controls the use of a class.
csc.exe
long - .NET alias
JITer
Encapsulation
23. System.SByte
sbyte - .NET alias
Private Access Modifier
Inheritance
long - Size
24. Allow access to types that exist in outside assemblies.
Program
Incrementing / Decrementing Variables
FCL
References (Visual Studio Solution
25. 16 bit- unsigned word (U+0000 to U+ffff)
Window.xaml.cs
Base Class
char - Size
byte - .NET alias
26. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.
Inheritance
float - .NET alias
Protected Internal Access Modifier
ushort - Size
27. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
Method
Decimal (or decimal) - Size
Inheritance
Assignment Operator
28. Represents the encapsulation of data and behaviors into a single unit.
Equality Operator
Int64 - Size
Method
Class
29. A symbol that specifies an operation to be performed on one or more variables.
Class aka Type
Window.xaml.cs
Operator
Internal Access Modifier
30. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
Static Member
FCL
using
Protected Access Modifier
31. Something that has a different number of parameters to it's predecessor
Sealed Class
using
decimal - .NET alias
Overloaded Method
32. System.Single
Statement
While Statement
Static Member
float - .NET alias
33. (< or > or <= or >=)
Relational Operator
Constructor
returnType methodName (parameterList)
Expression
34. (= or += or -= or = or /=)
Variable
Parameter aka Argument
Public Keyword
Assignment Operator
35. Only requires one operand usually a count+1 or a count++ or a count--
Window.xaml.cs
Unary Operator
W.P.F
Int32 - Size
36. A type of statement that produces a value that might be tested or assigned to a variable.
Private Access Modifier
Unary Operator
Parameter aka Argument
Expression
37. 32 bit single precision floating point data
Object
Visual Studio Solution
Float (or float) - Size
Heap
38. Object Oriented Programming relies on dot.notation. Dot Notation enables public methods to be fully accessible from outside an object. Member names are separated by a dot (.). Syntax is method-defined-in-class.bject-in-runtime-of-class
Incrementing / Decrementing Variables
Dot Notation
Overloaded Method
Object
39. A Member that cannot be accessed/invoked through an Object Instance.
bool - Size
W.P.F
Static Member
Boolean Operator
40. Indicates that the Method can be overridden.
Static Class
Heap
uint - .NET alias
Virtual Method Modifier
41. The lowest level or fundamental data types needed for representing data.
Identifiers
Operator
Assembly
Primitive Type
42. Container for one or more Visual Studio Projects.
ulong - Size
Operator
NET
Visual Studio Solution
43. System.UInt64
Float (or float) - Size
ulong - .NET alias
Abstraction
decimal - .NET alias
44. 32 bit - unsigned integer data
uint - Size
char - .NET alias
Value Type
JITer
45. Sits behind GUI (Graphical User Interface) and provides event listeners
Window.xaml.cs
Assembly
Properties
Stack
46. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).
Namespace
uint - .NET alias
Class Statement
Assembly
47. A representation of an area in the computer memory in which a value of a particular data type can be stored.
Value Type
Int64 - Size
Variable
char - .NET alias
48. Framework Class Library
Assembly
IDE
Strong Typing
FCL
49. Box which can be typed into at runtime. Can display large amounts of scrollable text for the user. To create a scrollable one in Visual Studio set the multiline property to 'TRUE' and the Scrollbars property to 'VERTICAL'.
Textbox
Float (or float) - Size
Int32 - Size
Overloaded Method
50. 16 bit - unsigned integer data (0 to 65535)
Method
Value Type
Overloaded Method
ushort - Size