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. When a sub class passes down all the behaviours of the original parent class






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






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






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






5. Variables defined by a class






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






7. Command Language Runtime






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






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






10. true or false






11. 32 bit - unsigned integer data






12. System.UInt16






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






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






15. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.






16. 32 bit integer data






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






18. System.UInt64






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






20. 64 bit integer data






21. Framework Class Library






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






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






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






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






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






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






28. Windows Presentation Foundation






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






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






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






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






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






34. System.Int64






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






36. System.SByte






37. 128 bit fixed precision (financial)






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






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






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






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






42. A Class that cannot be instantiated.






43. Container for one or more Visual Studio Projects.






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






45. Symbols which transform and combine expressions






46. A Class that cannot be Inherited






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






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






49. 32 bit single precision floating point data






50. true or false