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. Integrated Development Environment






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






3. Container for one or more Visual Studio Projects.






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






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






6. System.UInt32






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






8. System.Double






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






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






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






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






13. Microsoft's generic software framework for application development.






14. 32 bit integer data






15. A Class that cannot be Inherited






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






17. 64 bit - unsigned integer data






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






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






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






21. (< or > or <= or >=)






22. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






23. System.Int64






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






25. 32 bit integer data






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






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






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






29. true or false






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






31. Text as Unicode characters






32. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






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






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






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






36. System.Char






37. System.Int32






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






39. Code which signifies a carriage return. Symbolises a new line in a text box.






40. Command Language Runtime






41. Framework Class Library






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






43. (== or !=)






44. (&& or || or & or |)






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






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






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






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






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






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