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






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






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






4. System.UInt64






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






6. 32 bit single precision floating point data






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






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






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






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






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






12. Framework Class Library






13. Command Language Runtime






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






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






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






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






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






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






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






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






22. 32 bit integer data






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






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






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






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






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






28. Text as Unicode characters






29. System.Int64






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






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






32. Must have a data type






33. Symbols which transform and combine expressions






34. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging






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






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






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






38. Just-in-time compilation






39. System.SByte






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






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






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






43. Access is limited to the current Assembly






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






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






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






47. 32 bit integer data






48. Only requires one operand usually a count+1 or a count++ or a count--






49. Object Oriented Programming relies on dot.notation. Dot Notation enables public methods to be fully accessible from outside an object. Member names are separated by a dot (.). Syntax is method-defined-in-class.bject-in-runtime-of-class






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