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. Must have a data type






2. Only requires one operand usually a count+1 or a count++ or a count--






3. (== or !=)






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






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






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






7. Access is limited to the current Assembly






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






9. Syntax of a C# Method






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






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






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






13. (< or > or <= or >=)






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






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






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






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






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






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






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






21. Variables defined by a class






22. 32 bit single precision floating point data






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






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






25. true or false






26. Symbols which transform and combine expressions






27. System.Double






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






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






30. 128 bit fixed precision (financial)






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






32. 32 bit integer data






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






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






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






36. System.UInt16






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






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






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






40. System.Single






41. true or false






42. Text as Unicode characters






43. System.Byte






44. A Class that cannot be Inherited






45. 64 bit integer data






46. Something that has a different number of parameters to it's predecessor






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






48. System.UInt32






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






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