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. Field whose value can never change. Declared with 'const' keyword
Constant
Label
char - Size
Decimal (or decimal) - Size
2. 8 bit - unsigned byte (0 - 255)
ulong - .NET alias
byte - Size
Incrementing / Decrementing Variables
Expression
3. Only requires one operand usually a count+1 or a count++ or a count--
Int64 - Size
Internal Access Modifier
Keyword
Unary Operator
4. Contains the class definitions that allow access to the functionality provided by .NET.
Namespace
Float (or float) - Size
Abstract Class Modifier
Framework Class Library (FCL)
5. 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
String (or string)
ulong - Size
using
6. 64 bit integer data
Constant
Comments
Parameter aka Argument
Int64 - Size
7. Keyword which exposes members to other classes OR Identifier which makes program elements public
Statement
Equality Operator
Public Keyword
Common Language Runtime (CLR)
8. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Console Application
Private Access Modifier
float - .NET alias
Field
9. Access is limited to the current Assembly
Boolean - Size
uint - .NET alias
Internal Access Modifier
short - .NET alias
10. 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.
char - .NET alias
Encapsulation
Abstract Method Modifier
Private Access Modifier
11. 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.
Encapsulation
int - Size
Static Class
byte - .NET alias
12. Represents the encapsulation of data and behaviors into a single unit.
Encapsulation
char - .NET alias
Abstract Method Modifier
Class
13. Allow access to types that exist in outside assemblies.
References (Visual Studio Solution
String (or string)
Label
Class aka Type
14. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
Decimal (or decimal) - Size
Polymorphism
Data structures
char - .NET alias
15. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.
Class Statement
Inheritance
Namespace
Virtual Method Modifier
16. 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
Sealed Class
Heap
Just-in-time (JIT
ushort - Size
17. (< or > or <= or >=)
Relational Operator
long - .NET alias
Parameter aka Argument
int - .NET alias
18. Code which implements GUI (graphical User Interface).
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Operator
Abstract Method Modifier
Identifiers
19. Windows Presentation Foundation
short - Size
W.P.F
Namespace
String (or string)
20. Integrated Development Environment
ulong - Size
Assembly
IDE
Boolean - Size
21. 16 bit- unsigned word (U+0000 to U+ffff)
Class Statement
Static Class
ulong - Size
char - Size
22. An instance of a class that exists at run-time and is typically referenced via a variable name.
Object
Assignment Operator
short - .NET alias
Expression
23. A Class from which other classes can inherit characteristics.
Base Class
Sealed Class
Constructor
Class Statement
24. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
Private Access Modifier
uint - .NET alias
Comments
Intermediate Language (IL)
25. System.Decimal
Just-in-time (JIT
While Statement
Variable
decimal - .NET alias
26. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
using
Statement
sbyte - Size
Namespace
27. System.Char
Encapsulation
Operator
Precedence
char - .NET alias
28. Most common kind of reference type. They define objects. They must have at least one method and one field.
Unary Operator
Assignment Operator
Class aka Type
Data structures
29. 16 bit - unsigned integer data (0 to 65535)
ushort - Size
FCL
Precedence
Partial Method Modifier
30. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
Polymorphism
Identifiers
Primitive
Properties
31. 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.
Relational Operator
Protected Access Modifier
Partial Method Modifier
sbyte - .NET alias
32. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio
ulong - .NET alias
Label
Assembly
short - .NET alias
33. System.Byte
Operator
char - Size
byte - .NET alias
Static Class
34. Symbols which transform and combine expressions
Assignment Operator
Variable (C# requirements)
Operator
r
35. 32 bit single precision floating point data
Float (or float) - Size
Derived Class
Static Class
byte - Size
36. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
float - .NET alias
using
Textbox
Variable
37. System.Double
Sealed Class
csc.exe
double - .NET alias
Virtual Method Modifier
38. 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'.
uint - Size
Textbox
Class
Expression
39. Restricts access to a Member to the current Class and any Derived Class.
Protected Access Modifier
Decimal (or decimal) - Size
Float (or float) - Size
Value Type
40. System.Int32
int - .NET alias
uint - .NET alias
short - .NET alias
Label
41. 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.
Label
Identifiers
Strong Typing
JITer
42. The process of compiling IL source into CPU-native code for execution.
byte - .NET alias
Just-in-time (JIT
Primitive Type
Abstract Method Modifier
43. Code which signifies a carriage return. Symbolises a new line in a text box.
Window.xaml.cs
char - .NET alias
r
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
44. A Class that cannot be Inherited
Sealed Class
Constructor
char - Size
Class
45. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
Console Application
Just-in-time (JIT
long - Size
Properties
46. Must have a data type
Variable (C# requirements)
Class Statement
Static Member
Field
47. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Derived Class
If Statement
NET
Assignment Operator
48. Mathematical (+ or - or / or %)
Operator
Abstract Class Modifier
Primitive Type
Common Language Runtime (CLR)
49. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
NET
Protected Internal Access Modifier
Method
Polymorphism
50. count = count+1 or count++ or count__. Both count variables are Unary Operators
Properties
Operator
Statement
Incrementing / Decrementing Variables