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. Must have a data type
long - Size
Variable (C# requirements)
Internal Access Modifier
Int32 - Size
2. Only requires one operand usually a count+1 or a count++ or a count--
Protected Internal Access Modifier
Console Application
Inheritance
Unary Operator
3. (== or !=)
long - Size
CLR
Equality Operator
Dot Notation
4. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
Comments
Console Application
Partial Class Modifier
Dot Notation
5. Sits behind GUI (Graphical User Interface) and provides event listeners
Int64 - Size
While Statement
Window.xaml.cs
Partial Method Modifier
6. The .NET run-time environment that enables code to be compiled and executed.
Expression
Method
Common Language Runtime (CLR)
Public Keyword
7. Access is limited to the current Assembly
If Statement
Intermediate Language (IL)
Expression
Internal Access Modifier
8. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Reference Type
Method
Inheritance
Precedence
9. Syntax of a C# Method
long - .NET alias
Assembly
String (or string)
returnType methodName (parameterList)
10. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.
ushort - Size
Relational Operator
Overloaded Method
Array
11. The "Type" name of data that is stored on the Stack
Expression
Value Type
Encapsulation
int - Size
12. The "Type" name of data that is stored on the Heap
Reference Type
float - .NET alias
Framework Class Library (FCL)
ushort - Size
13. (< or > or <= or >=)
Window.xaml.cs
Relational Operator
ushort - Size
Int32 - Size
14. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Encapsulation
Operator
Inheritance
int - Size
15. 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.
Protected Internal Access Modifier
Variable
Method
Int32 - Size
16. A representation of an area in the computer memory in which a value of a particular data type can be stored.
Abstract Method Modifier
Public Keyword
Variable
Constant
17. A method that is called whenever an Object is created. The method uses the same name as the Class.
bool - Size
Constructor
Expression
Static Member
18. A type of statement that produces a value that might be tested or assigned to a variable.
Expression
Label
Intermediate Language (IL)
Polymorphism
19. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio
Assembly
Conditional Operator
int - .NET alias
FCL
20. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Polymorphism
FCL
Object
decimal - .NET alias
21. Variables defined by a class
Identifiers
uint - .NET alias
double - .NET alias
Field
22. 32 bit single precision floating point data
Float (or float) - Size
String (or string)
Program
Variable
23. Field whose value can never change. Declared with 'const' keyword
Variable
Identifiers
Constant
String (or string)
24. Allows the definition of a Class to span multiple files (within the same Project)
Strong Typing
Conditional Operator
byte - Size
Partial Class Modifier
25. true or false
Method
bool - Size
Data structures
Boolean - Size
26. Symbols which transform and combine expressions
Operator
int - Size
double - .NET alias
bool - Size
27. System.Double
Visual Studio Solution
Namespace
JIT
double - .NET alias
28. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
Abstract Class Modifier
Strong Typing
Array
Inheritance
29. 16 bit - signed integer data (-32768 to 32767)
Dot Notation
JIT
Operator
short - Size
30. 128 bit fixed precision (financial)
Heap
long - Size
Int32 - Size
Decimal (or decimal) - Size
31. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).
Partial Method Modifier
Just-in-time (JIT
Static Class
Namespace
32. 32 bit integer data
long - .NET alias
Class Statement
int - Size
Class aka Type
33. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
CLR
short - .NET alias
Method
Protected Access Modifier
34. Restricts access to a Member to the current Class and any Derived Class.
Variable
long - .NET alias
Protected Access Modifier
Data structures
35. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5
Namespace
short - Size
Window.xaml.cs
Expression
36. System.UInt16
byte - Size
ushort - .NET alias
Data structures
Abstract Method Modifier
37. Used to display text that end user does not need to edit.
ushort - Size
Label
returnType methodName (parameterList)
int - .NET alias
38. 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
Inheritance
Field
uint - .NET alias
39. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
Boolean Operator
Sealed Class
bool - Size
Statement
40. System.Single
Relational Operator
Protected Internal Access Modifier
float - .NET alias
Operator
41. true or false
Expression
bool - Size
Window.xaml.cs
Primitive
42. Text as Unicode characters
Variable
String (or string)
Statement
Inheritance
43. System.Byte
Encapsulation
r
byte - .NET alias
Value Type
44. A Class that cannot be Inherited
Derived Class
Operator
Static Class
Sealed Class
45. 64 bit integer data
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Inheritance
Int64 - Size
Keyword
46. Something that has a different number of parameters to it's predecessor
Overloaded Method
int - .NET alias
Constructor
Method
47. 16 bit - unsigned integer data (0 to 65535)
Boolean Operator
Protected Access Modifier
ushort - Size
Boolean - Size
48. System.UInt32
JITer
uint - .NET alias
using
Inheritance
49. When a sub class passes down all the behaviours of the original parent class
Inheritance
Comments
Derived Class
Class Statement
50. Most common kind of reference type. They define objects. They must have at least one method and one field.
NET
Class aka Type
Conditional Operator
Inheritance