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. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






2. Command Language Runtime






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






4. Extra information within a method






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






6. System.UInt64






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






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






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






10. Windows Presentation Foundation






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






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






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






14. Must have a data type






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






16. 64 bit integer data






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






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






19. 64 bit - unsigned integer data






20. System.UInt16






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






22. System.SByte






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






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






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






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






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






28. Container for one or more Visual Studio Projects.






29. Object Oriented Programming relies on dot.notation. Dot Notation enables public methods to be fully accessible from outside an object. Member names are separated by a dot (.). Syntax is method-defined-in-class.bject-in-runtime-of-class






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






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






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






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






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






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






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






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






38. Syntax of a C# Method






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






40. Integrated Development Environment






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






42. System.Decimal






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






44. (== or !=)






45. The lowest level or fundamental data types needed for representing data.






46. 32 bit integer data






47. System.Single






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






49. 64 bit integer data






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