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






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






4. Windows Presentation Foundation






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






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






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






8. 32 bit integer data






9. A method that is called whenever an Object is created. The method uses the same name as the Class.






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






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






12. true or false






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






14. System.SByte






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






17. true or false






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






19. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)






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






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






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






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






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






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






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






27. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).






28. Access is limited to the current Assembly






29. Indicates that the Method can be overridden.






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






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






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






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






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






35. System.Int32






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






37. System.Int64






38. System.Byte






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






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






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






42. A Class that cannot be instantiated.






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






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






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






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






47. 32 bit - unsigned integer data






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






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






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