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
C#
Boolean - Size
Variable (C# requirements)
Class
2. 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)
Boolean Operator
NET
short - .NET alias
Internal Access Modifier
3. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
Textbox
Boolean - Size
Partial Method Modifier
Method
4. Command which runs repeatedly while (some) condition is true.
While Statement
float - .NET alias
CLR
Keyword
5. Mathematical (+ or - or / or %)
Static Class
Internal Access Modifier
Operator
Partial Class Modifier
6. 32 bit integer data
Abstract Method Modifier
ushort - Size
Int32 - Size
Protected Internal Access Modifier
7. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
If Statement
char - .NET alias
Primitive
Variable (C# requirements)
8. System.Char
Decimal (or decimal) - Size
Boolean - Size
Object
char - .NET alias
9. (&& or || or & or |)
Abstraction
Conditional Operator
Primitive Type
Statement
10. (== or !=)
Partial Class Modifier
Static Class
Equality Operator
Internal Access Modifier
11. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Polymorphism
Assignment Operator
byte - Size
Program
12. The process of hiding and restricting access to the implementation details of a data structure.
Protected Internal Access Modifier
Expression
uint - .NET alias
Encapsulation
13. 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'.
csc.exe
double - .NET alias
JITer
Textbox
14. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
Partial Class Modifier
int - .NET alias
Common Language Runtime (CLR)
using
15. 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.
Static Class
Class aka Type
Syntax
Public Keyword
16. (= or += or -= or = or /=)
Assignment Operator
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
long - .NET alias
int - Size
17. Most common kind of reference type. They define objects. They must have at least one method and one field.
Statement
FCL
Class aka Type
Float (or float) - Size
18. System.Decimal
decimal - .NET alias
Just-in-time (JIT
byte - .NET alias
Virtual Method Modifier
19. Framework Class Library
Int64 - Size
FCL
char - Size
Program
20. Code which implements GUI (graphical User Interface).
Constant
NET
References (Visual Studio Solution
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
21. Windows Presentation Foundation
double - .NET alias
Variable (C# requirements)
char - .NET alias
W.P.F
22. Syntax of a C# Method
Variable (C# requirements)
Statement
bool - Size
returnType methodName (parameterList)
23. Symbols which transform and combine expressions
Operator
short - Size
Method
Private Access Modifier
24. count = count+1 or count++ or count__. Both count variables are Unary Operators
Framework Class Library (FCL)
Array
Incrementing / Decrementing Variables
Keyword
25. A type of statement that produces a value that might be tested or assigned to a variable.
If Statement
Expression
Abstract Method Modifier
Class Statement
26. 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
Sealed Class
Encapsulation
Method
Object
27. System.Int16
short - .NET alias
Variable
ushort - Size
Common Language Runtime (CLR)
28. Access is limited to the current Assembly and Derived Types
Protected Internal Access Modifier
byte - .NET alias
Derived Class
Primitive
29. A Class that can only have Static Members
Encapsulation
Decimal (or decimal) - Size
Virtual Method Modifier
Static Class
30. Sits behind GUI (Graphical User Interface) and provides event listeners
Strong Typing
Data structures
Float (or float) - Size
Window.xaml.cs
31. Just-in-time compilation
Float (or float) - Size
JIT
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Virtual Method Modifier
32. Keyword which exposes members to other classes OR Identifier which makes program elements public
Class aka Type
Public Keyword
ulong - .NET alias
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
33. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5
Framework Class Library (FCL)
Boolean - Size
Expression
Program
34. 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
Namespace
Unary Operator
Variable
Dot Notation
35. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
While Statement
JITer
JIT
using
36. 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.
returnType methodName (parameterList)
Double (or double) - Size
Field
Variable
37. System.Int64
long - .NET alias
Variable (C# requirements)
Dot Notation
short - Size
38. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Method
Precedence
JITer
csc.exe
39. 32 bit integer data
If Statement
Just-in-time (JIT
Inheritance
int - Size
40. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
decimal - .NET alias
Relational Operator
Abstraction
Properties
41. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
ushort - .NET alias
Static Member
W.P.F
Properties
42. System.UInt16
Heap
ushort - .NET alias
Method
Boolean Operator
43. 32 bit - unsigned integer data
W.P.F
Boolean - Size
Strong Typing
uint - Size
44. Allow access to types that exist in outside assemblies.
Syntax
References (Visual Studio Solution
Constant
Decimal (or decimal) - Size
45. Restricts access to a Member to the current Class.
Assignment Operator
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Private Access Modifier
Inheritance
46. (< or > or <= or >=)
Relational Operator
Field
Conditional Operator
Protected Internal Access Modifier
47. 16 bit- unsigned word (U+0000 to U+ffff)
char - Size
Operator
IDE
Static Class
48. A Class that cannot be Inherited
ushort - .NET alias
r
Assembly
Sealed Class
49. Only requires one operand usually a count+1 or a count++ or a count--
Unary Operator
Parameter aka Argument
Constructor
Protected Internal Access Modifier
50. Names reserved by the compiler that coders are not allowed to use as identifiers.
Keyword
Encapsulation
Label
sbyte - Size