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. Something that has a different number of parameters to it's predecessor






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






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






4. Indicates that the Method can be overridden.






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






6. (== or !=)






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






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






9. System.Byte






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






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






12. Command Language Runtime






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






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






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






16. Command which runs repeatedly while (some) condition is true.






17. System.Double






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






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






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






21. 8 bit - unsigned byte (0 - 255)






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






23. (&& or || or & or |)






24. A Class that cannot be instantiated.






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






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






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






28. 32 bit integer data






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






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






31. 32 bit integer data






32. Must have a data type






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






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






35. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






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






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






38. System.UInt16






39. System.Int16






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






41. System.Single






42. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging






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






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






45. System.Int32






46. 16 bit- unsigned word (U+0000 to U+ffff)






47. true or false






48. (< or > or <= or >=)






49. Series of instructions which tell a computer what to do.






50. Framework Class Library