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. 8 bit - unsigned byte (0 - 255)
Variable (C# requirements)
byte - Size
csc.exe
Private Access Modifier
2. A method that is called whenever an Object is created. The method uses the same name as the Class.
Constructor
Object
Class Statement
Namespace
3. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional
Reference Type
Variable
Constructor
If Statement
4. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.
Class
Incrementing / Decrementing Variables
Precedence
Partial Class Modifier
5. Field whose value can never change. Declared with 'const' keyword
Derived Class
Statement
Syntax
Constant
6. 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.
short - .NET alias
Variable
Protected Internal Access Modifier
Window.xaml.cs
7. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.
Strong Typing
Syntax
decimal - .NET alias
Conditional Operator
8. System.UInt16
Inheritance
Method
short - .NET alias
ushort - .NET alias
9. A Class that can only have Static Members
Static Class
Polymorphism
JIT
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
10. System.Single
float - .NET alias
Assignment Operator
Protected Access Modifier
long - Size
11. When a sub class passes down all the behaviours of the original parent class
sbyte - Size
int - .NET alias
Window.xaml.cs
Inheritance
12. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism
Protected Internal Access Modifier
Keyword
If Statement
Inheritance
13. Used to display text that end user does not need to edit.
Window.xaml.cs
Overloaded Method
Label
Identifiers
14. Code which implements GUI (graphical User Interface).
Equality Operator
JITer
C# mark Up Language X.A.M.L(Extensible Application Markup Language)
Variable
15. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.
Float (or float) - Size
Static Member
Statement
sbyte - .NET alias
16. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)
Abstract Class Modifier
csc.exe
Inheritance
Relational Operator
17. 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
Textbox
Object
Statement
Heap
18. Keyword which exposes members to other classes OR Identifier which makes program elements public
Public Keyword
Statement
C#
Derived Class
19. A Class from which other classes can inherit characteristics.
Base Class
Variable (C# requirements)
ushort - .NET alias
Int64 - Size
20. System.Int64
char - Size
long - .NET alias
Reference Type
Strong Typing
21. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging
Method
Object
using
Data structures
22. Groups classes together so that they have a unique identifier
Properties
Partial Class Modifier
Namespace
sbyte - Size
23. Symbols which transform and combine expressions
decimal - .NET alias
Intermediate Language (IL)
Operator
r
24. 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.
Array
Abstract Method Modifier
long - .NET alias
Double (or double) - Size
25. (&& or || or & or |)
Conditional Operator
Encapsulation
r
Class Statement
26. Represents the encapsulation of data and behaviors into a single unit.
r
Inheritance
Class
Namespace
27. (< or > or <= or >=)
Console Application
JITer
While Statement
Relational Operator
28. Microsoft's generic software framework for application development.
Abstract Method Modifier
Unary Operator
While Statement
NET
29. Something that has a different number of parameters to it's predecessor
Value Type
Variable
ushort - .NET alias
Overloaded Method
30. The lowest level or fundamental data types needed for representing data.
Expression
Encapsulation
Primitive Type
Partial Method Modifier
31. System.Char
Int64 - Size
Internal Access Modifier
Expression
char - .NET alias
32. true or false
Inheritance
Program
Boolean - Size
Abstract Class Modifier
33. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.
Window.xaml.cs
Heap
Namespace
Inheritance
34. 64 bit double precision floating point data
ushort - .NET alias
Operator
Double (or double) - Size
Assembly
35. Variables defined by a class
Field
Partial Class Modifier
Variable
Static Member
36. The process of compiling IL source into CPU-native code for execution.
char - Size
Assignment Operator
CLR
Just-in-time (JIT
37. System.Decimal
decimal - .NET alias
Base Class
DateTime
Decimal (or decimal) - Size
38. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.
Method
short - Size
Double (or double) - Size
ushort - .NET alias
39. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /
Heap
Stack
Expression
Comments
40. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio
int - .NET alias
Assembly
Array
Int64 - Size
41. Just-in-time compilation
Variable
JIT
Common Language Runtime (CLR)
decimal - .NET alias
42. 64 bit integer data
csc.exe
ushort - .NET alias
Int64 - Size
Virtual Method Modifier
43. Introduces a new class. Marked by curly brackets { }
float - .NET alias
Class Statement
Static Class
Object
44. true or false
Public Keyword
Sealed Class
Reference Type
bool - Size
45. Extra information within a method
Static Class
Parameter aka Argument
Public Keyword
float - .NET alias
46. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).
Precedence
NET
Polymorphism
Textbox
47. Windows Presentation Foundation
Int64 - Size
W.P.F
Abstract Class Modifier
Double (or double) - Size
48. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.
Abstract Class Modifier
Field
Static Class
While Statement
49. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.
C#
short - Size
Abstract Method Modifier
Incrementing / Decrementing Variables
50. 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.
long - .NET alias
Partial Method Modifier
Textbox
Protected Internal Access Modifier