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






2. 64 bit integer data






3. Extra information within a method






4. (&& or || or & or |)






5. System.UInt64






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






7. System.Decimal






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






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






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






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






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






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






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






15. 32 bit integer data






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






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






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






19. Container for one or more Visual Studio Projects.






20. Must have a data type






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. 64 bit - unsigned integer data






23. System.Int16






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






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






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






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






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






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






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






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






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






33. true or false






34. Command Language Runtime






35. System.SByte






36. System.Double






37. Framework Class Library






38. A Class that can only have Static Members






39. System.UInt32






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






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






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






43. System.Single






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






45. Block of memory where objects live. Whenever a new object is created it is allowed onto the heap. Old objects are regularly deallocate from the heap to save available memory






46. Integrated Development Environment






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






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






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






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