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. (= or += or -= or = or /=)






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






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






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






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






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






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






8. true or false






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






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






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






12. 32 bit - unsigned integer data






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






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






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






16. Framework Class Library






17. 32 bit integer data






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






19. Extra information within a method






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






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






22. Access is limited to the current Assembly






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






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






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






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






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






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






29. 32 bit single precision floating point data






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






31. System.Int64






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






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






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






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






36. Container for one or more Visual Studio Projects.






37. (== or !=)






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






39. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






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






41. Symbols which transform and combine expressions






42. System.Decimal






43. 64 bit - unsigned integer data






44. true or false






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






46. When a sub class passes down all the behaviours of the original parent class






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






48. Indicates that the Method can be overridden.






49. 16 bit - signed integer data (-32768 to 32767)






50. Keyword which exposes members to other classes OR Identifier which makes program elements public