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. A representation of an area in the computer memory in which a value of a particular data type can be stored.






2. Windows Presentation Foundation






3. A Class that inherits characteristics from another Class.






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






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






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






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






8. System.UInt64






9. Code which implements GUI (graphical User Interface).






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






11. Framework Class Library






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






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






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






15. Container for one or more Visual Studio Projects.






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






17. 32 bit - unsigned integer data






18. Access is limited to the current Assembly






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






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






21. 64 bit integer data






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






23. Integrated Development Environment






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






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






26. 32 bit integer data






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






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






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






30. 64 bit double precision floating point data






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






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






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






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






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






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






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






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






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






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






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






42. (= or += or -= or = or /=)






43. A Class that cannot be instantiated.






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






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






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






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






48. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






49. true or false






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