Test your basic knowledge |

C# Programming Basics

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. Represents the encapsulation of data and behaviors into a single unit.






2. 8 bit - unsigned byte (0 - 255)






3. 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






4. Keyword which exposes members to other classes OR Identifier which makes program elements public






5. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






6. System.Char






7. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






8. Text as Unicode characters






9. Runs in a command prompt window rather than a GUI (graphical User Interface) one.






10. Code which implements GUI (graphical User Interface).






11. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.






12. Represents date and time data with a 100 ns resolution






13. An instance of a class that exists at run-time and is typically referenced via a variable name.






14. Command Language Runtime






15. The process of hiding and restricting access to the implementation details of a data structure.






16. The "Type" name of data that is stored on the Stack






17. A Class that can only have Static Members






18. true or false






19. Only requires one operand usually a count+1 or a count++ or a count--






20. A method that is called whenever an Object is created. The method uses the same name as the Class.






21. System.Decimal






22. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






23. 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






24. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






25. Field whose value can never change. Declared with 'const' keyword






26. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






27. 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.






28. System.Int16






29. Most common kind of reference type. They define objects. They must have at least one method and one field.






30. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).






31. Contains the class definitions that allow access to the functionality provided by .NET.






32. Windows Presentation Foundation






33. 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)






34. Command which runs repeatedly while (some) condition is true.






35. Extra information within a method






36. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






37. 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.






38. Introduces a new class. Marked by curly brackets { }






39. Code which signifies a carriage return. Symbolises a new line in a text box.






40. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






41. Restricts access to a Member to the current Class.






42. When a sub class passes down all the behaviours of the original parent class






43. System.SByte






44. (&& or || or & or |)






45. A Class that inherits characteristics from another Class.






46. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.






47. A Class from which other classes can inherit characteristics.






48. 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.






49. System.Single






50. Syntax of a C# Method