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. A Class that cannot be Inherited






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






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






5. Must have a data type






6. 64 bit - unsigned integer data






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






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






9. A Class that cannot be instantiated.






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






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






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






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






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






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. A Class from which other classes can inherit characteristics.






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






18. Command Language Runtime






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






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






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






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






23. Integrated Development Environment






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






25. Framework Class Library






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






27. System.UInt16






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






29. Variables defined by a class






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






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






32. System.Int16






33. System.Char






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






35. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






36. System.Single






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






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






39. The member type of a Class that performs an action.






40. System.UInt64






41. Text as Unicode characters






42. System.Decimal






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






44. Just-in-time compilation






45. 32 bit single precision floating point data






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






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






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






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






50. 64 bit double precision floating point data