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. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
Boolean Operator
Intermediate Language (IL)
Class
int - .NET alias
2. Contains the class definitions that allow access to the functionality provided by .NET.
Framework Class Library (FCL)
Class aka Type
Inheritance
Just-in-time (JIT
3. 128 bit fixed precision (financial)
Decimal (or decimal) - Size
Properties
Expression
Namespace
4. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Keyword
If Statement
String (or string)
Abstract Method Modifier
5. A Class from which other classes can inherit characteristics.
Base Class
ushort - .NET alias
Statement
Method
6. Variables defined by a class
Field
Assembly
Program
Method
7. The "Type" name of data that is stored on the Stack
Unary Operator
Value Type
Console Application
Inheritance
8. Series of instructions which tell a computer what to do.
Program
Visual Studio Solution
Variable
double - .NET alias
9. Extra information within a method
C#
Program
Value Type
Parameter aka Argument
10. Allows the definition of a Class to span multiple files (within the same Project)
Partial Class Modifier
Overloaded Method
Window.xaml.cs
Inheritance
11. Syntax of a C# Method
returnType methodName (parameterList)
using
Abstraction
Double (or double) - Size
12. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).
String (or string)
IDE
Namespace
Static Class
13. Access is limited to the current Assembly and Derived Types
Abstract Class Modifier
Protected Internal Access Modifier
Inheritance
Float (or float) - Size
14. Keyword which exposes members to other classes OR Identifier which makes program elements public
Partial Class Modifier
Public Keyword
Encapsulation
CLR
15. Most common kind of reference type. They define objects. They must have at least one method and one field.
Class aka Type
short - Size
Keyword
Derived Class
16. Used to display text that end user does not need to edit.
Int32 - Size
Incrementing / Decrementing Variables
Method
Label
17. Just-in-time compilation
Partial Class Modifier
Sealed Class
JIT
Virtual Method Modifier
18. count = count+1 or count++ or count__. Both count variables are Unary Operators
Incrementing / Decrementing Variables
decimal - .NET alias
Int32 - Size
Inheritance
19. 8 bit - unsigned byte (0 - 255)
Namespace
Int64 - Size
byte - Size
References (Visual Studio Solution
20. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
bool - Size
r
Primitive Type
Primitive
21. 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.
csc.exe
Int32 - Size
Boolean - Size
Variable
22. true or false
int - .NET alias
Stack
bool - Size
Object
23. Block of memory where objects live. Whenever a new object is created it is allowed onto the heap. Old objects are regularly deallocate from the heap to save available memory
Heap
Assembly
IDE
Expression
24. The member type of a Class that performs an action.
uint - .NET alias
Comments
Variable
Method
25. Restricts access to a Member to the current Class.
Private Access Modifier
Precedence
long - Size
Object
26. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Equality Operator
Double (or double) - Size
Precedence
Object
27. 8 bit - signed byte (-128 - 127)
sbyte - Size
long - Size
Window.xaml.cs
Data structures
28. When a sub class passes down all the behaviours of the original parent class
Inheritance
Parameter aka Argument
Abstract Class Modifier
Operator
29. A Member that cannot be accessed/invoked through an Object Instance.
Object
Static Member
Protected Access Modifier
Identifiers
30. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Internal Access Modifier
Visual Studio Solution
int - .NET alias
Inheritance
31. Command Language Runtime
CLR
double - .NET alias
ulong - .NET alias
int - .NET alias
32. true or false
Boolean - Size
Reference Type
JITer
returnType methodName (parameterList)
33. Instance of a type created when a program runs. Can be visible or invisible. Has properties and events and methods. Properties- determine appearance. Events - trigger a response. Methods - something the object does
Private Access Modifier
Variable
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Object
34. A Class that inherits characteristics from another Class.
Derived Class
IDE
Console Application
Stack
35. Windows Presentation Foundation
uint - Size
W.P.F
char - Size
Operator
36. Access is limited to the current Assembly
Internal Access Modifier
Protected Internal Access Modifier
Relational Operator
bool - Size
37. 64 bit integer data
FCL
long - Size
Namespace
char - .NET alias
38. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
Comments
Expression
Base Class
Variable
39. Symbols which transform and combine expressions
Window.xaml.cs
Operator
Primitive Type
Polymorphism
40. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
While Statement
Namespace
Abstract Class Modifier
Constant
41. Restricts access to a Member to the current Class and any Derived Class.
Protected Access Modifier
If Statement
Polymorphism
Parameter aka Argument
42. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio
Assembly
returnType methodName (parameterList)
Console Application
Derived Class
43. Text as Unicode characters
Protected Internal Access Modifier
Method
References (Visual Studio Solution
String (or string)
44. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
Private Access Modifier
char - .NET alias
Abstract Method Modifier
Properties
45. 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.
W.P.F
FCL
Stack
Encapsulation
46. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
Identifiers
Abstraction
using
Relational Operator
47. Container for one or more Visual Studio Projects.
Sealed Class
Abstract Class Modifier
Textbox
Visual Studio Solution
48. Sits behind GUI (Graphical User Interface) and provides event listeners
Window.xaml.cs
sbyte - .NET alias
Incrementing / Decrementing Variables
Protected Access Modifier
49. 32 bit - unsigned integer data
uint - Size
Base Class
Class aka Type
Comments
50. 64 bit - unsigned integer data
Boolean Operator
Intermediate Language (IL)
ulong - Size
Decimal (or decimal) - Size