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. Windows Presentation Foundation






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






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






4. Sits behind GUI (Graphical User Interface) and provides event listeners






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






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






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






8. 32 bit integer data






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






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






11. Text as Unicode characters






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






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






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






15. 64 bit double precision floating point data






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






17. Restricts access to a Member to the current Class and any Derived Class.






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






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






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






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






22. Represents the encapsulation of data and behaviors into a single unit.






23. 64 bit integer data






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






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






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






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






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






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






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






31. System.Double






32. System.Byte






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






34. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






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






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






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






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






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






40. Extra information within a method






41. true or false






42. System.UInt16






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






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






45. A Class that inherits characteristics from another Class.






46. Integrated Development Environment






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






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






49. Container for one or more Visual Studio Projects.






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