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. Used to display text that end user does not need to edit.
Label
Derived Class
Namespace
Virtual Method Modifier
2. Sits behind GUI (Graphical User Interface) and provides event listeners
Namespace
Textbox
Constant
Window.xaml.cs
3. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
Console Application
Boolean - Size
Abstract Class Modifier
Dot Notation
4. A representation of an area in the computer memory in which a value of a particular data type can be stored.
Variable
Incrementing / Decrementing Variables
Assembly
int - .NET alias
5. System.UInt16
Heap
CLR
Protected Internal Access Modifier
ushort - .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.
Data structures
Virtual Method Modifier
returnType methodName (parameterList)
Identifiers
7. (= or += or -= or = or /=)
Assignment Operator
Partial Method Modifier
sbyte - .NET alias
short - .NET alias
8. System.Int32
Expression
long - .NET alias
int - .NET alias
Array
9. 64 bit double precision floating point data
Heap
Equality Operator
Double (or double) - Size
long - Size
10. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
bool - Size
Relational Operator
using
Boolean Operator
11. Windows Presentation Foundation
W.P.F
Constructor
Intermediate Language (IL)
r
12. 64 bit - unsigned integer data
ulong - Size
float - .NET alias
Inheritance
Statement
13. The .NET run-time environment that enables code to be compiled and executed.
Abstract Class Modifier
Common Language Runtime (CLR)
Primitive Type
Abstraction
14. 32 bit - unsigned integer data
uint - Size
Object
Variable
Operator
15. When a sub class passes down all the behaviours of the original parent class
Primitive
Dot Notation
Parameter aka Argument
Inheritance
16. 16 bit - signed integer data (-32768 to 32767)
short - Size
Strong Typing
uint - .NET alias
int - Size
17. 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
Stack
float - .NET alias
Operator
18. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
C#
Derived Class
byte - .NET alias
19. The lowest level or fundamental data types needed for representing data.
Public Keyword
Primitive Type
Abstract Method Modifier
Overloaded Method
20. The process of compiling IL source into CPU-native code for execution.
Just-in-time (JIT
Static Class
Partial Class Modifier
Keyword
21. true or false
uint - Size
Keyword
Common Language Runtime (CLR)
Boolean - Size
22. 32 bit integer data
Float (or float) - Size
Int32 - Size
W.P.F
uint - .NET alias
23. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
Data structures
Framework Class Library (FCL)
JIT
Inheritance
24. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Boolean Operator
CLR
Assignment Operator
Precedence
25. Variables defined by a class
Field
Data structures
Keyword
ushort - Size
26. Field whose value can never change. Declared with 'const' keyword
Primitive
Keyword
Framework Class Library (FCL)
Constant
27. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
Boolean - Size
Framework Class Library (FCL)
Comments
Class
28. A method that is called whenever an Object is created. The method uses the same name as the Class.
long - Size
Constructor
Partial Method Modifier
double - .NET alias
29. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Variable (C# requirements)
Polymorphism
Private Access Modifier
DateTime
30. The member type of a Class that performs an action.
byte - Size
Method
Precedence
Keyword
31. Represents date and time data with a 100 ns resolution
Assignment Operator
Syntax
DateTime
Encapsulation
32. 32 bit single precision floating point data
returnType methodName (parameterList)
Operator
byte - .NET alias
Float (or float) - Size
33. 8 bit - unsigned byte (0 - 255)
byte - Size
byte - .NET alias
ulong - .NET alias
Overloaded Method
34. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.
Conditional Operator
Statement
csc.exe
double - .NET alias
35. Integrated Development Environment
Inheritance
IDE
float - .NET alias
int - Size
36. 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'.
Namespace
Static Member
Method
Textbox
37. An instance of a class that exists at run-time and is typically referenced via a variable name.
Object
Strong Typing
Operator
Boolean - Size
38. 8 bit - signed byte (-128 - 127)
sbyte - Size
References (Visual Studio Solution
Method
Internal Access Modifier
39. Extra information within a method
Parameter aka Argument
Just-in-time (JIT
Int32 - Size
Inheritance
40. true or false
JITer
Constant
bool - Size
Reference Type
41. Allows the definition of a Class to span multiple files (within the same Project)
Dot Notation
W.P.F
Operator
Partial Class Modifier
42. A Class that can only have Static Members
Static Class
bool - Size
Class aka Type
byte - Size
43. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5
ulong - Size
DateTime
uint - Size
Expression
44. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.
Just-in-time (JIT
uint - Size
short - Size
Stack
45. Code which implements GUI (graphical User Interface).
char - Size
Variable
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
DateTime
46. 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.
Framework Class Library (FCL)
Encapsulation
Abstract Method Modifier
csc.exe
47. 16 bit - unsigned integer data (0 to 65535)
short - Size
Decimal (or decimal) - Size
ushort - Size
Static Member
48. Represents the encapsulation of data and behaviors into a single unit.
uint - .NET alias
IDE
Class
DateTime
49. A Class that cannot be instantiated.
String (or string)
Static Class
Polymorphism
char - .NET alias
50. 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
If Statement
Partial Method Modifier
Window.xaml.cs