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. Indicates that the Method can be overridden.






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






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






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






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






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






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






8. Allow access to types that exist in outside assemblies.






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






10. Something that has a different number of parameters to it's predecessor






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






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






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






14. 16 bit - unsigned integer data (0 to 65535)






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






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






17. Syntax of a C# Method






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






19. A type of statement that produces a value that might be tested or assigned to a variable.






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






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






22. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






23. System.UInt16






24. 32 bit integer data






25. (&& or || or & or |)






26. Groups classes together so that they have a unique identifier






27. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).






28. (< or > or <= or >=)






29. Represents the encapsulation of data and behaviors into a single unit.






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






31. System.Single






32. System.UInt64






33. A Class that can only have Static Members






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






35. Windows Presentation Foundation






36. 32 bit integer data






37. true or false






38. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.






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






40. 16 bit - signed integer data (-32768 to 32767)






41. (= or += or -= or = or /=)






42. Names reserved by the compiler that coders are not allowed to use as identifiers.






43. Variables defined by a class






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






45. System.Decimal






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






47. A Class that inherits characteristics from another Class.






48. Integrated Development Environment






49. 32 bit single precision floating point data






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