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. System.SByte
long - Size
byte - Size
sbyte - .NET alias
Decimal (or decimal) - Size
2. Symbols which transform and combine expressions
Class
Assignment Operator
Inheritance
Operator
3. 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'.
int - Size
Textbox
Array
Inheritance
4. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.
Identifiers
char - Size
Class Statement
Array
5. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
Textbox
Comments
Operator
String (or string)
6. true or false
Variable
Expression
Operator
Boolean - Size
7. Something that has a different number of parameters to it's predecessor
Variable
Overloaded Method
char - .NET alias
uint - .NET alias
8. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Variable (C# requirements)
Statement
Parameter aka Argument
Decimal (or decimal) - Size
9. Restricts access to a Member to the current Class.
While Statement
ulong - Size
Private Access Modifier
Boolean Operator
10. The process of compiling IL source into CPU-native code for execution.
Protected Internal Access Modifier
Just-in-time (JIT
Equality Operator
r
11. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
byte - Size
Decimal (or decimal) - Size
Polymorphism
Value Type
12. System.Single
Operator
Array
float - .NET alias
Reference Type
13. 16 bit- unsigned word (U+0000 to U+ffff)
Heap
r
Incrementing / Decrementing Variables
char - Size
14. 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.
long - .NET alias
sbyte - Size
Variable
Primitive Type
15. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
using
csc.exe
Primitive
Assembly
16. 16 bit - unsigned integer data (0 to 65535)
short - Size
ushort - Size
Constant
Syntax
17. Contains the class definitions that allow access to the functionality provided by .NET.
Sealed Class
Framework Class Library (FCL)
Object
Class aka Type
18. System.Char
Console Application
char - .NET alias
char - Size
Assignment Operator
19. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
Strong Typing
r
Sealed Class
ulong - Size
20. When a sub class passes down all the behaviours of the original parent class
Visual Studio Solution
Primitive Type
r
Inheritance
21. Syntax of a C# Method
Keyword
ulong - .NET alias
While Statement
returnType methodName (parameterList)
22. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Common Language Runtime (CLR)
Operator
If Statement
Constant
23. (== or !=)
using
Equality Operator
Visual Studio Solution
Inheritance
24. Access is limited to the current Assembly and Derived Types
Protected Internal Access Modifier
Comments
int - .NET alias
ushort - Size
25. 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)
Encapsulation
Boolean Operator
Window.xaml.cs
Framework Class Library (FCL)
26. System.Byte
float - .NET alias
byte - .NET alias
long - Size
Relational Operator
27. The "Type" name of data that is stored on the Stack
Operator
long - Size
Value Type
Abstraction
28. Extra information within a method
Parameter aka Argument
Value Type
Equality Operator
Double (or double) - Size
29. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Assembly
Console Application
float - .NET alias
Inheritance
30. 8 bit - signed byte (-128 - 127)
Static Class
Incrementing / Decrementing Variables
sbyte - Size
Label
31. Series of instructions which tell a computer what to do.
Console Application
Decimal (or decimal) - Size
Program
Primitive
32. System.UInt32
Partial Method Modifier
Visual Studio Solution
Primitive Type
uint - .NET alias
33. Windows Presentation Foundation
int - Size
JIT
W.P.F
Data structures
34. 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
Stack
Object
Data structures
Equality Operator
35. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
Partial Method Modifier
Properties
Method
Framework Class Library (FCL)
36. 32 bit integer data
byte - Size
Int32 - Size
JITer
Float (or float) - Size
37. 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.
long - Size
While Statement
short - Size
Abstract Method Modifier
38. 32 bit - unsigned integer data
JITer
Derived Class
Variable (C# requirements)
uint - Size
39. Sits behind GUI (Graphical User Interface) and provides event listeners
Assignment Operator
C#
JITer
Window.xaml.cs
40. (= or += or -= or = or /=)
Float (or float) - Size
CLR
Method
Assignment Operator
41. (&& or || or & or |)
Encapsulation
Conditional Operator
Derived Class
NET
42. Compilation of classes. In C# Usually ends in .dll or .exe
Assembly
Assignment Operator
Internal Access Modifier
long - .NET alias
43. Indicates that the Method can be overridden.
Expression
Virtual Method Modifier
References (Visual Studio Solution
Encapsulation
44. 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.
Inheritance
Syntax
Protected Access Modifier
W.P.F
45. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
Keyword
Statement
CLR
byte - Size
46. 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
Reference Type
Dot Notation
Derived Class
Public Keyword
47. System.Int16
Assembly
Method
Conditional Operator
short - .NET alias
48. 16 bit - signed integer data (-32768 to 32767)
Object
short - Size
DateTime
uint - .NET alias
49. A Class that cannot be instantiated.
Static Class
using
Statement
Precedence
50. Field whose value can never change. Declared with 'const' keyword
Properties
JIT
Constant
bool - Size