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. 8 bit - unsigned byte (0 - 255)






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






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






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






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






6. 32 bit - unsigned integer data






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. Groups classes together so that they have a unique identifier






9. System.Int32






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






11. Variables defined by a class






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






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






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






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






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






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






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






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






20. System.UInt32






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






22. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






23. A Class that cannot be Inherited






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






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






26. (== or !=)






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






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






29. System.SByte






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






31. System.Byte






32. Text as Unicode characters






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






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






35. Integrated Development Environment






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






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






38. 64 bit integer data






39. A Class that can only have Static Members






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






41. Access is limited to the current Assembly






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






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






44. Symbols which transform and combine expressions






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






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






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






48. (&& or || or & or |)






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






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