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. count = count+1 or count++ or count__. Both count variables are Unary Operators
short - Size
Namespace
FCL
Incrementing / Decrementing Variables
2. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
Constructor
CLR
Console Application
Comments
3. A Class that can only have Static Members
Syntax
Virtual Method Modifier
Static Class
Window.xaml.cs
4. 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.
Partial Method Modifier
Reference Type
Variable (C# requirements)
Visual Studio Solution
5. Allows the definition of a Class to span multiple files (within the same Project)
Statement
DateTime
Partial Class Modifier
Variable (C# requirements)
6. Field whose value can never change. Declared with 'const' keyword
Constant
uint - Size
Unary Operator
Parameter aka Argument
7. Compilation of classes. In C# Usually ends in .dll or .exe
Abstract Class Modifier
Assembly
returnType methodName (parameterList)
uint - Size
8. When a sub class passes down all the behaviours of the original parent class
Partial Class Modifier
If Statement
Console Application
Inheritance
9. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Assembly
int - .NET alias
Variable (C# requirements)
10. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5
Expression
sbyte - Size
Abstract Method Modifier
Internal Access Modifier
11. An instance of a class that exists at run-time and is typically referenced via a variable name.
Object
Static Class
ushort - .NET alias
int - .NET alias
12. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
Stack
Intermediate Language (IL)
char - Size
Operator
13. Must have a data type
Statement
NET
Variable (C# requirements)
Derived Class
14. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
ulong - .NET alias
String (or string)
decimal - .NET alias
using
15. Code which signifies a carriage return. Symbolises a new line in a text box.
short - .NET alias
Inheritance
Primitive
r
16. Windows Presentation Foundation
W.P.F
Textbox
Identifiers
Static Class
17. 128 bit fixed precision (financial)
Class
JIT
While Statement
Decimal (or decimal) - Size
18. (&& or || or & or |)
Conditional Operator
Operator
short - .NET alias
W.P.F
19. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Method
If Statement
FCL
short - Size
20. 8 bit - signed byte (-128 - 127)
DateTime
Namespace
Class Statement
sbyte - Size
21. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.
Array
Inheritance
Object
int - Size
22. Just-in-time compilation
returnType methodName (parameterList)
Unary Operator
JIT
Decimal (or decimal) - Size
23. Only requires one operand usually a count+1 or a count++ or a count--
Sealed Class
Unary Operator
C#
byte - Size
24. 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.
char - .NET alias
Encapsulation
Abstract Class Modifier
Window.xaml.cs
25. (< or > or <= or >=)
Constant
Partial Class Modifier
Relational Operator
Operator
26. System.Decimal
short - Size
Unary Operator
decimal - .NET alias
Common Language Runtime (CLR)
27. 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
Inheritance
Class aka Type
Boolean - Size
28. A type of statement that produces a value that might be tested or assigned to a variable.
Array
Protected Internal Access Modifier
Expression
ushort - Size
29. System.Char
char - .NET alias
CLR
Protected Access Modifier
Just-in-time (JIT
30. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
Statement
Data structures
bool - Size
Program
31. 64 bit double precision floating point data
Class Statement
csc.exe
While Statement
Double (or double) - Size
32. System.UInt64
short - Size
ulong - .NET alias
Decimal (or decimal) - Size
Syntax
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
Object
ulong - Size
Abstraction
bool - Size
34. 16 bit - signed integer data (-32768 to 32767)
Inheritance
Inheritance
Base Class
short - Size
35. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
Primitive
Parameter aka Argument
Public Keyword
Encapsulation
36. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
sbyte - Size
Abstraction
Conditional Operator
CLR
37. Groups classes together so that they have a unique identifier
short - Size
Namespace
short - .NET alias
Partial Class Modifier
38. The process of hiding and restricting access to the implementation details of a data structure.
Visual Studio Solution
Encapsulation
Textbox
IDE
39. The process of compiling IL source into CPU-native code for execution.
Class
Class aka Type
Reference Type
Just-in-time (JIT
40. Container for one or more Visual Studio Projects.
Visual Studio Solution
short - Size
Common Language Runtime (CLR)
Operator
41. Used to display text that end user does not need to edit.
Label
Class Statement
Encapsulation
Inheritance
42. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
If Statement
Abstract Method Modifier
Method
Primitive Type
43. 8 bit - unsigned byte (0 - 255)
Object
byte - Size
char - Size
FCL
44. Represents date and time data with a 100 ns resolution
Public Keyword
DateTime
Encapsulation
Expression
45. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Constructor
Properties
Precedence
double - .NET alias
46. 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'.
Program
Virtual Method Modifier
Syntax
Textbox
47. System.UInt32
Namespace
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Partial Method Modifier
uint - .NET alias
48. Framework Class Library
C#
FCL
Float (or float) - Size
byte - Size
49. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
NET
Visual Studio Solution
Variable
JITer
50. A Class from which other classes can inherit characteristics.
Protected Access Modifier
Syntax
Base Class
Primitive