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. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).






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






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






4. Container for one or more Visual Studio Projects.






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






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






7. A Class that inherits characteristics from another Class.






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






9. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.






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






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






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






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






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






15. System.Decimal






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






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






18. Syntax of a C# Method






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






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






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






22. 32 bit integer data






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






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






25. System.UInt32






26. 32 bit single precision floating point data






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






28. 64 bit double precision floating point data






29. A Class that cannot be instantiated.






30. Restricts access to a Member to the current Class.






31. A Class that cannot be Inherited






32. System.Int16






33. Names used to identify program elements (e.g. namespaces & classes & methods & variables). Must always start with a letter. Always case sensitive. When multiword must be presented in CamelCase. keywords are an example of an identifier.






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






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






36. Represents the encapsulation of data and behaviors into a single unit.






37. Access is limited to the current Assembly and Derived Types






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






39. A Member that cannot be accessed/invoked through an Object Instance.






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






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






42. Integrated Development Environment






43. 64 bit - unsigned integer data






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






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






46. Text as Unicode characters






47. System.Char






48. 32 bit integer data






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






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