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. Windows Presentation Foundation
W.P.F
Assignment Operator
Inheritance
Console Application
2. 32 bit integer data
Assembly
Class Statement
Int32 - Size
short - Size
3. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
If Statement
short - Size
long - .NET alias
short - .NET alias
4. Command which runs repeatedly while (some) condition is true.
Variable
ushort - Size
Statement
While Statement
5. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5
Expression
Abstract Class Modifier
r
int - .NET alias
6. A type of statement that produces a value that might be tested or assigned to a variable.
Double (or double) - Size
Expression
Internal Access Modifier
References (Visual Studio Solution
7. Framework Class Library
Window.xaml.cs
FCL
Namespace
Int32 - Size
8. Represents date and time data with a 100 ns resolution
Class Statement
DateTime
Inheritance
Boolean - Size
9. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Inheritance
Partial Method Modifier
Data structures
Textbox
10. The member type of a Class that performs an action.
Method
Visual Studio Solution
Inheritance
Object
11. 128 bit fixed precision (financial)
Base Class
While Statement
Decimal (or decimal) - Size
Data structures
12. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.
Abstract Class Modifier
Inheritance
Primitive
ushort - .NET alias
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'.
Class aka Type
Derived Class
Textbox
ushort - .NET alias
14. Most common kind of reference type. They define objects. They must have at least one method and one field.
Inheritance
Common Language Runtime (CLR)
DateTime
Class aka Type
15. Just-in-time compilation
long - Size
Class Statement
JIT
ushort - Size
16. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.
JITer
Method
Constructor
Reference Type
17. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
r
If Statement
Precedence
int - .NET alias
18. Contains the class definitions that allow access to the functionality provided by .NET.
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Framework Class Library (FCL)
Conditional Operator
Object
19. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
Operator
Float (or float) - Size
Inheritance
Abstract Class Modifier
20. A Class that cannot be Inherited
uint - .NET alias
Protected Access Modifier
Sealed Class
ushort - Size
21. Access is limited to the current Assembly and Derived Types
Namespace
long - Size
Protected Internal Access Modifier
Class
22. A Class that cannot be instantiated.
Assembly
CLR
Static Class
Inheritance
23. Sits behind GUI (Graphical User Interface) and provides event listeners
Namespace
Label
Window.xaml.cs
Stack
24. System.Int32
Syntax
int - .NET alias
Class
Static Class
25. Field whose value can never change. Declared with 'const' keyword
Constant
Protected Access Modifier
char - Size
double - .NET alias
26. Something that has a different number of parameters to it's predecessor
Overloaded Method
Array
Properties
char - Size
27. 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
Constant
String (or string)
Static Class
Heap
28. 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.
char - .NET alias
Syntax
Reference Type
Equality Operator
29. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
Method
ushort - .NET alias
Namespace
ushort - Size
30. 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.
Abstract Class Modifier
Identifiers
Window.xaml.cs
char - .NET alias
31. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.
using
Data structures
Parameter aka Argument
Stack
32. Groups classes together so that they have a unique identifier
Parameter aka Argument
Namespace
uint - Size
Operator
33. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.
JIT
Array
Value Type
JITer
34. 64 bit integer data
Int64 - Size
ushort - .NET alias
IDE
short - Size
35. Must have a data type
Variable
int - .NET alias
Variable (C# requirements)
NET
36. 32 bit integer data
Console Application
Primitive
r
int - Size
37. Names reserved by the compiler that coders are not allowed to use as identifiers.
Assignment Operator
sbyte - .NET alias
Keyword
long - Size
38. 32 bit single precision floating point data
Label
Float (or float) - Size
CLR
Private Access Modifier
39. Introduces a new class. Marked by curly brackets { }
Data structures
JIT
int - Size
Class Statement
40. System.Byte
Variable
While Statement
byte - .NET alias
Framework Class Library (FCL)
41. 16 bit - signed integer data (-32768 to 32767)
Operator
short - Size
Comments
Protected Access Modifier
42. 64 bit - unsigned integer data
Virtual Method Modifier
Private Access Modifier
uint - .NET alias
ulong - Size
43. Restricts access to a Member to the current Class and any Derived Class.
using
Protected Access Modifier
Namespace
Float (or float) - Size
44. System.Char
Polymorphism
Inheritance
char - .NET alias
Boolean Operator
45. 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
Dot Notation
Inheritance
Unary Operator
Field
46. Series of instructions which tell a computer what to do.
sbyte - Size
int - Size
Sealed Class
Program
47. Extra information within a method
short - .NET alias
sbyte - Size
Decimal (or decimal) - Size
Parameter aka Argument
48. Symbols which transform and combine expressions
Operator
Label
Partial Class Modifier
Partial Method Modifier
49. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
Data structures
Protected Internal Access Modifier
Incrementing / Decrementing Variables
double - .NET alias
50. Only requires one operand usually a count+1 or a count++ or a count--
float - .NET alias
char - .NET alias
Unary Operator
Assembly