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. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






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






3. Variables defined by a class






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






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






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






7. System.Double






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






9. 32 bit - unsigned integer data






10. A representation of an area in the computer memory in which a value of a particular data type can be stored.






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






12. System.UInt16






13. System.SByte






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






15. System.Decimal






16. 64 bit integer data






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






18. 64 bit - unsigned integer data






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






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






21. A Class that cannot be Inherited






22. A Class that can only have Static Members






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






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






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






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






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






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






29. Windows Presentation Foundation






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






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






32. Symbols which transform and combine expressions






33. The lowest level or fundamental data types needed for representing data.






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






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






36. 32 bit single precision floating point data






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






38. 128 bit fixed precision (financial)






39. Indicates that the Method can be overridden.






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






41. Text as Unicode characters






42. System.UInt64






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






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






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






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






47. System.Byte






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






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






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