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. Command which runs repeatedly while (some) condition is true.






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






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






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






5. Syntax of a C# Method






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






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






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






9. true or false






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






11. Symbols which transform and combine expressions






12. System.UInt16






13. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






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






15. true or false






16. 128 bit fixed precision (financial)






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






18. Framework Class Library






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






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






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. 64 bit double precision floating point data






24. Compilation of classes. In C# Usually ends in .dll or .exe






25. Access is limited to the current Assembly






26. Text as Unicode characters






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






28. The "Type" name of data that is stored on the Heap






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






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






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






32. A Class that inherits characteristics from another Class.






33. 64 bit - unsigned integer data






34. 64 bit integer data






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






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






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






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






39. System.Char






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






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






42. Integrated Development Environment






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






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






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






46. Command Language Runtime






47. Extra information within a method






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






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






50. 32 bit - unsigned integer data