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. Must have a data type






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






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






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






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






6. 32 bit integer data






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






8. System.Char






9. (&& or || or & or |)






10. (== or !=)






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






12. The process of hiding and restricting access to the implementation details of a data structure.






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






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






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






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






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






18. System.Decimal






19. Framework Class Library






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






21. Windows Presentation Foundation






22. Syntax of a C# Method






23. Symbols which transform and combine expressions






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






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






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






27. System.Int16






28. Access is limited to the current Assembly and Derived Types






29. A Class that can only have Static Members






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






31. Just-in-time compilation






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






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






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






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






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






37. System.Int64






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






39. 32 bit integer data






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






41. Characteristics of an object. Something an object has. Provides a specific access point to data within a field






42. System.UInt16






43. 32 bit - unsigned integer data






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






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






46. (< or > or <= or >=)






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






48. A Class that cannot be Inherited






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






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