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. Represents the encapsulation of data and behaviors into a single unit.
ushort - Size
Class
Keyword
Just-in-time (JIT
2. 8 bit - unsigned byte (0 - 255)
Precedence
Abstract Method Modifier
byte - Size
W.P.F
3. 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
Partial Class Modifier
FCL
short - Size
Object
4. Keyword which exposes members to other classes OR Identifier which makes program elements public
Public Keyword
Overloaded Method
Inheritance
decimal - .NET alias
5. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
Internal Access Modifier
Polymorphism
uint - Size
Abstract Class Modifier
6. System.Char
Statement
Window.xaml.cs
char - .NET alias
Visual Studio Solution
7. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
Strong Typing
Value Type
Statement
byte - .NET alias
8. Text as Unicode characters
String (or string)
Field
Assembly
float - .NET alias
9. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Intermediate Language (IL)
Console Application
Polymorphism
byte - Size
10. Code which implements GUI (graphical User Interface).
Variable
JIT
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
C#
11. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
Encapsulation
Variable
JITer
Window.xaml.cs
12. Represents date and time data with a 100 ns resolution
short - Size
Operator
DateTime
CLR
13. An instance of a class that exists at run-time and is typically referenced via a variable name.
Int32 - Size
Double (or double) - Size
bool - Size
Object
14. Command Language Runtime
Overloaded Method
CLR
String (or string)
Protected Internal Access Modifier
15. The process of hiding and restricting access to the implementation details of a data structure.
If Statement
Class
Field
Encapsulation
16. The "Type" name of data that is stored on the Stack
Operator
Value Type
Int32 - Size
decimal - .NET alias
17. A Class that can only have Static Members
Properties
Method
Static Class
Data structures
18. true or false
Properties
Primitive Type
Boolean - Size
Console Application
19. Only requires one operand usually a count+1 or a count++ or a count--
JITer
Partial Class Modifier
Parameter aka Argument
Unary Operator
20. A method that is called whenever an Object is created. The method uses the same name as the Class.
If Statement
Constructor
Static Member
CLR
21. System.Decimal
Console Application
Virtual Method Modifier
Method
decimal - .NET alias
22. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.
Strong Typing
Primitive
Array
Private Access Modifier
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
JITer
Inheritance
Heap
int - Size
24. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
C#
Comments
Overloaded Method
ushort - .NET alias
25. Field whose value can never change. Declared with 'const' keyword
Constant
Inheritance
Variable (C# requirements)
Protected Access Modifier
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
Abstraction
Static Class
Static Member
27. Names used to identify program elements (e.g. namespaces & classes & methods & variables). Must always start with a letter. Always case sensitive. When multiword must be presented in CamelCase. keywords are an example of an identifier.
Identifiers
Syntax
Partial Method Modifier
char - .NET alias
28. System.Int16
Assembly
short - .NET alias
Class aka Type
ulong - .NET alias
29. Most common kind of reference type. They define objects. They must have at least one method and one field.
Class aka Type
Method
byte - Size
char - .NET alias
30. 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
Operator
JIT
CLR
31. Contains the class definitions that allow access to the functionality provided by .NET.
ulong - .NET alias
Overloaded Method
Precedence
Framework Class Library (FCL)
32. Windows Presentation Foundation
Textbox
While Statement
Operator
W.P.F
33. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)
Inheritance
char - Size
Boolean Operator
Program
34. Command which runs repeatedly while (some) condition is true.
Assignment Operator
Class
References (Visual Studio Solution
While Statement
35. Extra information within a method
Intermediate Language (IL)
String (or string)
CLR
Parameter aka Argument
36. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Method
Boolean - Size
Precedence
Double (or double) - Size
37. Allows a Method to be defined in a separate file (within the same Project). If no definition is found the compiler excludes the Method as an optimization.
byte - Size
decimal - .NET alias
Partial Method Modifier
Equality Operator
38. Introduces a new class. Marked by curly brackets { }
Class Statement
Partial Method Modifier
Variable
Operator
39. Code which signifies a carriage return. Symbolises a new line in a text box.
r
char - Size
Statement
long - Size
40. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
Double (or double) - Size
ulong - .NET alias
Class
Intermediate Language (IL)
41. Restricts access to a Member to the current Class.
Private Access Modifier
Abstract Class Modifier
Namespace
Static Class
42. When a sub class passes down all the behaviours of the original parent class
Namespace
Stack
Inheritance
ushort - Size
43. System.SByte
sbyte - .NET alias
Reference Type
Array
Inheritance
44. (&& or || or & or |)
Static Member
Conditional Operator
Constructor
Window.xaml.cs
45. A Class that inherits characteristics from another Class.
Keyword
Derived Class
Namespace
Equality Operator
46. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.
short - .NET alias
Private Access Modifier
Stack
FCL
47. A Class from which other classes can inherit characteristics.
bool - Size
IDE
Operator
Base Class
48. Specifies that the Method includes no implementation and must be overridden in a deriving class - where it will get its definition. Can only be part of an Abstract Class.
Common Language Runtime (CLR)
byte - Size
Inheritance
Abstract Method Modifier
49. System.Single
Assignment Operator
Window.xaml.cs
float - .NET alias
Protected Access Modifier
50. Syntax of a C# Method
Internal Access Modifier
Primitive Type
returnType methodName (parameterList)
Float (or float) - Size