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 concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.
Console Application
Decimal (or decimal) - Size
Field
Inheritance
2. Only requires one operand usually a count+1 or a count++ or a count--
Unary Operator
Textbox
r
Static Class
3. An instance of a class that exists at run-time and is typically referenced via a variable name.
r
short - Size
Object
Base Class
4. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.
Incrementing / Decrementing Variables
Stack
float - .NET alias
Conditional Operator
5. The process of hiding and restricting access to the implementation details of a data structure.
Encapsulation
Equality Operator
int - Size
int - .NET alias
6. 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.
sbyte - Size
Identifiers
ulong - .NET alias
Precedence
7. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
Static Member
char - Size
Operator
Statement
8. When a sub class passes down all the behaviours of the original parent class
Static Member
Inheritance
ushort - Size
String (or string)
9. 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
Double (or double) - Size
Partial Method Modifier
Float (or float) - Size
10. 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
Framework Class Library (FCL)
Inheritance
Overloaded Method
11. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
byte - Size
CLR
Abstract Class Modifier
Sealed Class
12. 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'.
Textbox
NET
Heap
Int64 - Size
13. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
char - Size
Just-in-time (JIT
r
Inheritance
14. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
C#
Console Application
DateTime
Encapsulation
15. System.Int32
Visual Studio Solution
sbyte - .NET alias
int - .NET alias
Unary Operator
16. A Class that inherits characteristics from another Class.
Assignment Operator
CLR
Derived Class
Assembly
17. Code which implements GUI (graphical User Interface).
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Heap
W.P.F
Decimal (or decimal) - Size
18. The member type of a Class that performs an action.
byte - .NET alias
Method
Decimal (or decimal) - Size
Static Class
19. Used to display text that end user does not need to edit.
While Statement
ulong - Size
Label
Assembly
20. A Member that cannot be accessed/invoked through an Object Instance.
Static Member
Abstract Class Modifier
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Identifiers
21. Introduces a new class. Marked by curly brackets { }
Object
Class Statement
uint - .NET alias
Data structures
22. (< or > or <= or >=)
Object
Private Access Modifier
float - .NET alias
Relational Operator
23. The "Type" name of data that is stored on the Heap
char - .NET alias
Abstraction
Double (or double) - Size
Reference Type
24. A Class from which other classes can inherit characteristics.
Private Access Modifier
Framework Class Library (FCL)
Base Class
int - .NET alias
25. Extra information within a method
Framework Class Library (FCL)
byte - .NET alias
Parameter aka Argument
Expression
26. Most common kind of reference type. They define objects. They must have at least one method and one field.
FCL
Class aka Type
Variable
float - .NET alias
27. Restricts access to a Member to the current Class and any Derived Class.
Reference Type
ulong - Size
Protected Access Modifier
Variable
28. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
Properties
Internal Access Modifier
Class aka Type
Object
29. Indicates that the Method can be overridden.
Public Keyword
Operator
Virtual Method Modifier
csc.exe
30. Code which signifies a carriage return. Symbolises a new line in a text box.
Expression
Just-in-time (JIT
Properties
r
31. Something that has a different number of parameters to it's predecessor
Overloaded Method
Heap
Dot Notation
Equality Operator
32. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Object
Conditional Operator
If Statement
Inheritance
33. 64 bit double precision floating point data
Int64 - Size
long - .NET alias
Double (or double) - Size
Object
34. 8 bit - unsigned byte (0 - 255)
Heap
Value Type
Equality Operator
byte - Size
35. 16 bit - signed integer data (-32768 to 32767)
short - Size
Array
Strong Typing
Polymorphism
36. Restricts access to a Member to the current Class.
Private Access Modifier
Object
Encapsulation
Variable
37. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
Abstract Class Modifier
Class
Sealed Class
Comments
38. The .NET run-time environment that enables code to be compiled and executed.
using
Conditional Operator
Common Language Runtime (CLR)
Just-in-time (JIT
39. A Class that cannot be Inherited
Object
Sealed Class
Namespace
Static Member
40. 64 bit - unsigned integer data
Common Language Runtime (CLR)
Textbox
ulong - Size
Label
41. A Class that can only have Static Members
short - Size
Namespace
Static Class
Operator
42. Integrated Development Environment
short - Size
NET
char - Size
IDE
43. Command which runs repeatedly while (some) condition is true.
While Statement
Static Class
ulong - .NET alias
int - .NET alias
44. System.Char
Stack
Int64 - Size
char - .NET alias
JITer
45. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
using
Overloaded Method
ulong - Size
short - Size
46. System.UInt16
ushort - .NET alias
Method
Dot Notation
Expression
47. Keyword which exposes members to other classes OR Identifier which makes program elements public
Assignment Operator
uint - Size
Public Keyword
short - .NET alias
48. System.Decimal
Method
IDE
Decimal (or decimal) - Size
decimal - .NET alias
49. 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.
Static Class
Encapsulation
csc.exe
Namespace
50. Groups classes together so that they have a unique identifier
returnType methodName (parameterList)
Label
short - Size
Namespace