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






2. true or false






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






4. System.UInt16






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






6. Symbols which transform and combine expressions






7. Indicates that the Method can be overridden.






8. (&& or || or & or |)






9. System.UInt32






10. System.Int16






11. A Class that cannot be instantiated.






12. Extra information within a method






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. 32 bit single precision floating point data






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






16. Access is limited to the current Assembly






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






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






19. Variables defined by a class






20. System.UInt64






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






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






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






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






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






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






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






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






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






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






31. A Class that cannot be Inherited






32. System.Int64






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






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






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






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






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






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






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






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






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






42. Command which runs repeatedly while (some) condition is true.






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






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






45. 32 bit integer data






46. 32 bit - unsigned integer data






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






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






49. 64 bit integer data






50. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio