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. count = count+1 or count++ or count__. Both count variables are Unary Operators
Incrementing / Decrementing Variables
C#
Textbox
Program
2. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
Int32 - Size
Strong Typing
Float (or float) - Size
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
3. When a sub class passes down all the behaviours of the original parent class
Operator
Inheritance
int - .NET alias
Statement
4. Keyword which exposes members to other classes OR Identifier which makes program elements public
References (Visual Studio Solution
DateTime
Public Keyword
csc.exe
5. Groups classes together so that they have a unique identifier
sbyte - Size
Virtual Method Modifier
Namespace
Intermediate Language (IL)
6. System.Char
char - .NET alias
If Statement
While Statement
Textbox
7. Text as Unicode characters
Console Application
String (or string)
Just-in-time (JIT
Incrementing / Decrementing Variables
8. 32 bit - unsigned integer data
FCL
Namespace
uint - Size
long - Size
9. A Class that cannot be Inherited
Sealed Class
sbyte - Size
Operator
While Statement
10. Allows a Method to be defined in a separate file (within the same Project). If no definition is found the compiler excludes the Method as an optimization.
Textbox
Intermediate Language (IL)
Expression
Partial Method Modifier
11. 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
long - .NET alias
Just-in-time (JIT
Dot Notation
Derived Class
12. Just-in-time compilation
While Statement
Relational Operator
Console Application
JIT
13. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.
Array
Static Member
ushort - Size
Object
14. 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.
ushort - Size
Unary Operator
Protected Internal Access Modifier
Syntax
15. Microsoft's generic software framework for application development.
Virtual Method Modifier
Inheritance
NET
Console Application
16. Access is limited to the current Assembly and Derived Types
short - .NET alias
String (or string)
Protected Internal Access Modifier
ushort - .NET alias
17. 64 bit - unsigned integer data
Encapsulation
Operator
ulong - Size
Decimal (or decimal) - Size
18. Something that has a different number of parameters to it's predecessor
Overloaded Method
Comments
NET
Expression
19. Indicates that the Method can be overridden.
Virtual Method Modifier
Parameter aka Argument
Window.xaml.cs
Polymorphism
20. true or false
Boolean - Size
bool - Size
Variable (C# requirements)
Namespace
21. Mathematical (+ or - or / or %)
char - .NET alias
Virtual Method Modifier
Operator
Program
22. (== or !=)
Operator
decimal - .NET alias
Common Language Runtime (CLR)
Equality Operator
23. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Data structures
Inheritance
Object
uint - Size
24. 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.
Field
Operator
Internal Access Modifier
Variable
25. Allow access to types that exist in outside assemblies.
NET
Virtual Method Modifier
Precedence
References (Visual Studio Solution
26. Syntax of a C# Method
Operator
returnType methodName (parameterList)
r
Program
27. The "Type" name of data that is stored on the Heap
Reference Type
Variable
Float (or float) - Size
Namespace
28. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.
Program
Int32 - Size
Boolean Operator
Abstraction
29. Represents the encapsulation of data and behaviors into a single unit.
Class
Value Type
long - .NET alias
C#
30. Most common kind of reference type. They define objects. They must have at least one method and one field.
Abstract Class Modifier
Class aka Type
Partial Method Modifier
Protected Access Modifier
31. true or false
bool - Size
Window.xaml.cs
Textbox
Constructor
32. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.
Statement
Console Application
bool - Size
Stack
33. 32 bit integer data
Static Class
int - Size
Variable
Abstraction
34. Compilation of classes. In C# Usually ends in .dll or .exe
Method
ushort - .NET alias
Protected Internal Access Modifier
Assembly
35. Introduces a new class. Marked by curly brackets { }
Base Class
Common Language Runtime (CLR)
Class Statement
Visual Studio Solution
36. (= or += or -= or = or /=)
Class Statement
Heap
Assignment Operator
Keyword
37. 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.
Abstract Method Modifier
ulong - Size
uint - Size
Label
38. A Member that cannot be accessed/invoked through an Object Instance.
Static Member
Assignment Operator
Class
Sealed Class
39. 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
Window.xaml.cs
bool - Size
String (or string)
40. System.Byte
byte - .NET alias
Framework Class Library (FCL)
Method
Expression
41. Field whose value can never change. Declared with 'const' keyword
Public Keyword
Constant
uint - Size
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
42. 16 bit- unsigned word (U+0000 to U+ffff)
IDE
Method
char - Size
Operator
43. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Unary Operator
Precedence
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Inheritance
44. 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.
sbyte - .NET alias
Identifiers
Partial Class Modifier
Expression
45. Characteristics of an object. Something an object has. Provides a specific access point to data within a field
Decimal (or decimal) - Size
Inheritance
Properties
C#
46. Only requires one operand usually a count+1 or a count++ or a count--
Heap
Float (or float) - Size
Unary Operator
CLR
47. 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)
Static Class
Variable
Object
Boolean Operator
48. Windows Presentation Foundation
Abstract Class Modifier
Properties
Parameter aka Argument
W.P.F
49. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
returnType methodName (parameterList)
short - .NET alias
Abstract Method Modifier
Data structures
50. System.UInt32
Textbox
Double (or double) - Size
short - Size
uint - .NET alias