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. A method that is called whenever an Object is created. The method uses the same name as the Class.






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






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






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






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






6. Text as Unicode characters






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






8. Extra information within a method






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






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






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






12. (== or !=)






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






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






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






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






17. System.UInt32






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






19. A Class that can only have Static Members






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






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






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






23. System.SByte






24. Allow access to types that exist in outside assemblies.






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






26. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






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






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






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






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






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






32. System.Single






33. (< or > or <= or >=)






34. (= or += or -= or = or /=)






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






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






37. 32 bit single precision floating point data






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






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






40. Indicates that the Method can be overridden.






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






42. Container for one or more Visual Studio Projects.






43. System.UInt64






44. 32 bit - unsigned integer data






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






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. A representation of an area in the computer memory in which a value of a particular data type can be stored.






48. Framework Class Library






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






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