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 "Type" name of data that is stored on the Heap






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






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






4. System.Int32






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






6. A Class that cannot be instantiated.






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






8. The lowest level or fundamental data types needed for representing data.






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






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






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






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






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






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






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






16. Indicates that the Method can be overridden.






17. Must have a data type






18. A representation of an area in the computer memory in which a value of a particular data type can be stored.






19. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






20. Just-in-time compilation






21. System.UInt32






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






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






24. Text as Unicode characters






25. System.UInt16






26. Mathematical (+ or - or / or %)






27. Extra information within a method






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






29. 64 bit double precision floating point data






30. Symbols which transform and combine expressions






31. The process of compiling IL source into CPU-native code for execution.






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






33. The .NET run-time environment that enables code to be compiled and executed.






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






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






36. System.Double






37. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






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






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






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






41. A Class that inherits characteristics from another Class.






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






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






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






45. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5






46. true or false






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






48. Box which can be typed into at runtime. Can display large amounts of scrollable text for the user. To create a scrollable one in Visual Studio set the multiline property to 'TRUE' and the Scrollbars property to 'VERTICAL'.






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






50. 128 bit fixed precision (financial)