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. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






2. Characteristics of an object. Something an object has. Provides a specific access point to data within a field






3. Indicates that the Method can be overridden.






4. 32 bit - unsigned integer data






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






6. (< or > or <= or >=)






7. Text as Unicode characters






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






9. A Class that cannot be instantiated.






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






11. 64 bit double precision floating point data






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






13. System.UInt16






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






15. System.Single






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






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






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






19. System.Int16






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






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






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






23. Access is limited to the current Assembly






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






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






26. System.UInt64






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






28. 64 bit - unsigned integer data






29. A Class that inherits characteristics from another Class.






30. (== or !=)






31. Box which can be typed into at runtime. Can display large amounts of scrollable text for the user. To create a scrollable one in Visual Studio set the multiline property to 'TRUE' and the Scrollbars property to 'VERTICAL'.






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






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






34. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






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






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






37. System.UInt32






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






39. System.Int32






40. true or false






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






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






43. 32 bit integer data






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






45. (&& or || or & or |)






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






47. Just-in-time compilation






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






49. Command Language Runtime






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