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. Groups classes together so that they have a unique identifier






2. System.Int64






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






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






5. A Class that inherits characteristics from another Class.






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






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






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






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






10. Integrated Development Environment






11. System.Char






12. Command Language Runtime






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






14. 64 bit integer data






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






16. 8 bit - signed byte (-128 - 127)






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






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






19. Container for one or more Visual Studio Projects.






20. 64 bit double precision floating point data






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






22. A Class from which other classes can inherit characteristics.






23. A Class that cannot be instantiated.






24. System.SByte






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






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






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






28. 64 bit - unsigned integer data






29. Access is limited to the current Assembly






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






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






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






33. (== or !=)






34. 64 bit integer data






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






36. count = count+1 or count++ or count__. Both count variables are Unary Operators






37. Extra information within a method






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






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






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






41. System.Byte






42. System.Int16






43. System.UInt16






44. 32 bit integer data






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






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






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






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






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






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