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. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






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






3. 128 bit fixed precision (financial)






4. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






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






6. Variables defined by a class






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






8. Series of instructions which tell a computer what to do.






9. Extra information within a method






10. Allows the definition of a Class to span multiple files (within the same Project)






11. Syntax of a C# Method






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






13. Access is limited to the current Assembly and Derived Types






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






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






16. Used to display text that end user does not need to edit.






17. Just-in-time compilation






18. count = count+1 or count++ or count__. Both count variables are Unary Operators






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






20. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






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






22. true or false






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. The member type of a Class that performs an action.






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






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






27. 8 bit - signed byte (-128 - 127)






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






29. A Member that cannot be accessed/invoked through an Object Instance.






30. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism






31. Command Language Runtime






32. true or false






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






34. A Class that inherits characteristics from another Class.






35. Windows Presentation Foundation






36. Access is limited to the current Assembly






37. 64 bit integer data






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






39. Symbols which transform and combine expressions






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






41. Restricts access to a Member to the current Class and any Derived Class.






42. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio






43. Text as Unicode characters






44. Characteristics of an object. Something an object has. Provides a specific access point to data within a field






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






46. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.






47. Container for one or more Visual Studio Projects.






48. Sits behind GUI (Graphical User Interface) and provides event listeners






49. 32 bit - unsigned integer data






50. 64 bit - unsigned integer data