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. The "Type" name of data that is stored on the Stack






2. System.SByte






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






4. Restricts access to a Member to the current Class and any Derived Class.






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






6. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.






7. Code which signifies a carriage return. Symbolises a new line in a text box.






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






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






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






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






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






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






14. A Class that can only have Static Members






15. Symbols which transform and combine expressions






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






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






18. Groups classes together so that they have a unique identifier






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






20. 8 bit - signed byte (-128 - 127)






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






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






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






24. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.






25. Windows Presentation Foundation






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






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






28. System.Double






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






30. 32 bit integer data






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






32. Just-in-time compilation






33. System.Decimal






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






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






36. System.UInt64






37. (== or !=)






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






39. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5






40. System.Single






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






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






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






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






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






46. A Class that inherits characteristics from another Class.






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






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






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






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