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. A method that is called whenever an Object is created. The method uses the same name as the Class.
Visual Studio Solution
Constructor
IDE
C#
2. Variables defined by a class
int - .NET alias
Statement
uint - Size
Field
3. The "Type" name of data that is stored on the Heap
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Identifiers
Reference Type
Encapsulation
4. Something that has a different number of parameters to it's predecessor
Overloaded Method
Class Statement
Inheritance
W.P.F
5. 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.
uint - Size
char - Size
ulong - Size
Abstract Method Modifier
6. A Member that cannot be accessed/invoked through an Object Instance.
Static Member
Namespace
Variable
If Statement
7. When a sub class passes down all the behaviours of the original parent class
long - .NET alias
Inheritance
Polymorphism
Strong Typing
8. Names reserved by the compiler that coders are not allowed to use as identifiers.
Keyword
Float (or float) - Size
sbyte - Size
Sealed Class
9. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Keyword
Statement
Inheritance
Precedence
10. Sits behind GUI (Graphical User Interface) and provides event listeners
Method
Window.xaml.cs
Namespace
Derived Class
11. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
Operator
Encapsulation
Statement
JIT
12. Framework Class Library
ulong - .NET alias
FCL
r
Statement
13. Introduces a new class. Marked by curly brackets { }
Textbox
Class Statement
Keyword
Int64 - Size
14. Must have a data type
NET
Visual Studio Solution
Console Application
Variable (C# requirements)
15. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
Virtual Method Modifier
Double (or double) - Size
Common Language Runtime (CLR)
Abstraction
16. System.Int16
Double (or double) - Size
Precedence
short - Size
short - .NET alias
17. Text as Unicode characters
String (or string)
Partial Class Modifier
Inheritance
long - Size
18. System.Int64
Operator
Intermediate Language (IL)
ulong - .NET alias
long - .NET alias
19. System.Byte
short - Size
byte - .NET alias
int - Size
Console Application
20. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
uint - .NET alias
Comments
Private Access Modifier
Static Member
21. A symbol that specifies an operation to be performed on one or more variables.
Operator
uint - .NET alias
Field
Intermediate Language (IL)
22. A Class that cannot be instantiated.
Program
Keyword
Static Class
Derived Class
23. 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
IDE
Public Keyword
NET
Dot Notation
24. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Statement
CLR
Properties
Derived Class
25. Mathematical (+ or - or / or %)
Primitive Type
Partial Class Modifier
Namespace
Operator
26. 16 bit- unsigned word (U+0000 to U+ffff)
Static Member
Float (or float) - Size
Variable
char - Size
27. 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
decimal - .NET alias
Object
Boolean - Size
csc.exe
28. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
DateTime
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Abstract Class Modifier
Incrementing / Decrementing Variables
29. The lowest level or fundamental data types needed for representing data.
Primitive Type
Assembly
bool - Size
Boolean Operator
30. 32 bit integer data
Int32 - Size
Partial Class Modifier
While Statement
Operator
31. 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.
Syntax
ulong - .NET alias
short - Size
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
32. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
int - .NET alias
Boolean Operator
Properties
ushort - .NET alias
33. (= or += or -= or = or /=)
Assignment Operator
char - Size
Class aka Type
short - .NET alias
34. System.Double
double - .NET alias
Program
Partial Class Modifier
float - .NET alias
35. System.Decimal
Console Application
long - .NET alias
Expression
decimal - .NET alias
36. Groups classes together so that they have a unique identifier
Partial Method Modifier
Internal Access Modifier
Namespace
Class aka Type
37. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
Just-in-time (JIT
Intermediate Language (IL)
Static Member
Public Keyword
38. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
Sealed Class
Boolean Operator
Primitive
int - Size
39. Allows the definition of a Class to span multiple files (within the same Project)
Heap
Window.xaml.cs
byte - .NET alias
Partial Class Modifier
40. (&& or || or & or |)
double - .NET alias
ushort - .NET alias
Conditional Operator
Int64 - Size
41. The member type of a Class that performs an action.
uint - .NET alias
Primitive Type
Method
Array
42. Allow access to types that exist in outside assemblies.
int - Size
References (Visual Studio Solution
Comments
Console Application
43. 8 bit - unsigned byte (0 - 255)
Syntax
byte - Size
Parameter aka Argument
NET
44. System.UInt64
Strong Typing
Expression
ulong - .NET alias
NET
45. 32 bit single precision floating point data
Decimal (or decimal) - Size
Float (or float) - Size
uint - .NET alias
JITer
46. An instance of a class that exists at run-time and is typically referenced via a variable name.
Object
Strong Typing
Just-in-time (JIT
Field
47. 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'.
Variable
Textbox
Partial Method Modifier
Incrementing / Decrementing Variables
48. Integrated Development Environment
IDE
Method
W.P.F
Keyword
49. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
Object
References (Visual Studio Solution
Keyword
Data structures
50. true or false
Abstract Method Modifier
W.P.F
bool - Size
Program