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. 64 bit double precision floating point data






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






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






4. Indicates that the Method can be overridden.






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. The process of compiling IL source into CPU-native code for execution.






7. (== or !=)






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






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






10. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.






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






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






13. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging






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






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






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






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






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






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






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






21. Syntax of a C# Method






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






23. 32 bit - unsigned integer data






24. 32 bit single precision floating point data






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






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






27. Extra information within a method






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






29. Just-in-time compilation






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






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






32. System.Byte






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






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






35. Must have a data type






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






37. System.UInt16






38. Command Language Runtime






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






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






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






42. System.Int64






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






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






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






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






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






48. System.Single






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






50. Names used to identify program elements (e.g. namespaces & classes & methods & variables). Must always start with a letter. Always case sensitive. When multiword must be presented in CamelCase. keywords are an example of an identifier.