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. 16 bit - unsigned integer data (0 to 65535)






2. A Class that cannot be Inherited






3. 32 bit single precision floating point data






4. System.Double






5. Syntax of a C# Method






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






7. 64 bit integer data






8. A Class that cannot be instantiated.






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






10. System.Int64






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






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






13. (== or !=)






14. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






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






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






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






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






19. Symbols which transform and combine expressions






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






21. System.Single






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






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






24. Indicates that the Method can be overridden.






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






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






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






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






29. 64 bit integer data






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






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






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






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






34. Windows Presentation Foundation






35. Groups classes together so that they have a unique identifier






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






37. true or false






38. Container for one or more Visual Studio Projects.






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






40. Represents date and time data with a 100 ns resolution






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






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






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






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






45. System.UInt32






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






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






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






49. System.UInt16






50. Rules defining or outlining the format and construction of statements. Semantics is what statements actually DO Syntax are RULES for how to lay statements out. Example syntax rule; All statements must end in a semicolon.