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. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
CLR
Properties
Variable
If Statement
2. 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.
Abstract Method Modifier
Syntax
Label
Strong Typing
3. Only requires one operand usually a count+1 or a count++ or a count--
Unary Operator
short - .NET alias
Method
bool - Size
4. Introduces a new class. Marked by curly brackets { }
Encapsulation
Field
Private Access Modifier
Class Statement
5. Extra information within a method
Operator
Expression
Public Keyword
Parameter aka Argument
6. 32 bit single precision floating point data
Abstract Method Modifier
Float (or float) - Size
Private Access Modifier
Encapsulation
7. 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'.
Textbox
While Statement
Just-in-time (JIT
W.P.F
8. A method that is called whenever an Object is created. The method uses the same name as the Class.
int - Size
ushort - Size
Constructor
Dot Notation
9. System.UInt32
uint - .NET alias
Base Class
Operator
Operator
10. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
Class
Method
Reference Type
Conditional Operator
11. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
long - .NET alias
If Statement
Precedence
byte - Size
12. Syntax of a C# Method
Identifiers
Primitive
returnType methodName (parameterList)
Double (or double) - Size
13. When a sub class passes down all the behaviours of the original parent class
NET
Inheritance
Statement
While Statement
14. Names reserved by the compiler that coders are not allowed to use as identifiers.
char - Size
Keyword
int - .NET alias
char - .NET alias
15. Runs in a command prompt window rather than a GUI (graphical User Interface) one.
long - .NET alias
long - Size
Console Application
Label
16. Must have a data type
While Statement
decimal - .NET alias
Variable (C# requirements)
Framework Class Library (FCL)
17. 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
Object
Inheritance
Assembly
JIT
18. Used to display text that end user does not need to edit.
float - .NET alias
Label
JITer
Comments
19. System.Int64
long - .NET alias
byte - .NET alias
Class Statement
Boolean - Size
20. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.
sbyte - .NET alias
C#
Derived Class
Variable (C# requirements)
21. Microsoft's generic software framework for application development.
CLR
W.P.F
long - .NET alias
NET
22. 64 bit - unsigned integer data
Method
Namespace
ulong - Size
Encapsulation
23. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.
Intermediate Language (IL)
Public Keyword
Method
Precedence
24. An instance of a class that exists at run-time and is typically referenced via a variable name.
While Statement
Object
Base Class
Internal Access Modifier
25. Series of instructions which tell a computer what to do.
Program
Abstraction
Dot Notation
float - .NET alias
26. Allows the definition of a Class to span multiple files (within the same Project)
Partial Class Modifier
Assembly
Inheritance
Just-in-time (JIT
27. System.Double
CLR
Encapsulation
double - .NET alias
short - Size
28. 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
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Label
uint - .NET alias
29. Access is limited to the current Assembly and Derived Types
Stack
Static Member
Protected Internal Access Modifier
Operator
30. The process of compiling IL source into CPU-native code for execution.
decimal - .NET alias
long - Size
Just-in-time (JIT
sbyte - .NET alias
31. Something that has a different number of parameters to it's predecessor
long - .NET alias
Overloaded Method
Heap
Textbox
32. Mathematical (+ or - or / or %)
Inheritance
Operator
Derived Class
returnType methodName (parameterList)
33. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
Abstraction
Partial Class Modifier
ulong - Size
returnType methodName (parameterList)
34. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Inheritance
Data structures
Object
Base Class
35. 32 bit integer data
Assembly
C#
Conditional Operator
Int32 - Size
36. Indicates that the Method can be overridden.
NET
JIT
Virtual Method Modifier
short - .NET alias
37. A Class that cannot be instantiated.
Intermediate Language (IL)
Static Class
Derived Class
Value Type
38. 8 bit - unsigned byte (0 - 255)
Conditional Operator
Decimal (or decimal) - Size
int - Size
byte - Size
39. System.Byte
Decimal (or decimal) - Size
byte - .NET alias
NET
Assembly
40. System.Single
float - .NET alias
int - .NET alias
Internal Access Modifier
Method
41. 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
Object
Dot Notation
Data structures
Incrementing / Decrementing Variables
42. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
Syntax
Data structures
Public Keyword
sbyte - Size
43. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
Comments
short - .NET alias
Namespace
Textbox
44. Restricts access to a Member to the current Class and any Derived Class.
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Protected Access Modifier
Framework Class Library (FCL)
Virtual Method Modifier
45. A symbol that specifies an operation to be performed on one or more variables.
csc.exe
JIT
uint - Size
Operator
46. The "Type" name of data that is stored on the Heap
Assembly
Derived Class
Overloaded Method
Reference Type
47. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.
Private Access Modifier
r
Stack
using
48. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Boolean Operator
Polymorphism
Operator
ulong - Size
49. Groups classes together so that they have a unique identifier
Encapsulation
Namespace
Partial Method Modifier
decimal - .NET alias
50. (< or > or <= or >=)
Namespace
Primitive
Intermediate Language (IL)
Relational Operator