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






2. Symbols which transform and combine expressions






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






4. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






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






6. true or false






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






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






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






10. The process of compiling IL source into CPU-native code for execution.






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






12. System.Single






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






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






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






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






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






18. System.Char






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






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






21. Syntax of a C# Method






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






23. (== or !=)






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






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






26. System.Byte






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






28. Extra information within a method






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






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






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






32. System.UInt32






33. Windows Presentation Foundation






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






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






36. 32 bit integer data






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






38. 32 bit - unsigned integer data






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






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






41. (&& or || or & or |)






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






43. Indicates that the Method can be overridden.






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






45. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






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






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






49. A Class that cannot be instantiated.






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