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. Runs in a command prompt window rather than a GUI (graphical User Interface) one.






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






3. System.Decimal






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






5. System.Double






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






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






8. A Class that can only have Static Members






9. (&& or || or & or |)






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






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






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






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






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






15. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






16. (== or !=)






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






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






19. (< or > or <= or >=)






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






21. System.Single






22. System.UInt16






23. Symbols which transform and combine expressions






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






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






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






27. 64 bit integer data






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






29. Text as Unicode characters






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






31. System.Int16






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






33. System.SByte






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






35. 64 bit double precision floating point data






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






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






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






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






40. Framework Class Library






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






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






43. Indicates that the Method can be overridden.






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






45. System.UInt64






46. Extra information within a method






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






48. Variables defined by a class






49. Microsoft's generic software framework for application development.






50. System.Char