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






2. Integrated Development Environment






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






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






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






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






7. (< or > or <= or >=)






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






9. Command Language Runtime






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






11. A Class that cannot be instantiated.






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






13. Access is limited to the current Assembly






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






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






16. Just-in-time compilation






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






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






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






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






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






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






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






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






25. System.Decimal






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






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






28. A Class that cannot be Inherited






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






30. System.Double






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






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






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






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






35. 16 bit- unsigned word (U+0000 to U+ffff)






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






37. 64 bit integer data






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






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






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






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






42. Microsoft's generic software framework for application development.






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






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






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






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






47. A symbol that specifies an operation to be performed on one or more variables.






48. Extra information within a method






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






50. System.Int16