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. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






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






3. 32 bit - unsigned integer data






4. System.Int64






5. A Class that can only have Static Members






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






7. Must have a data type






8. true or false






9. The .NET run-time environment that enables code to be compiled and executed.






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






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






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






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






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






15. 64 bit integer data






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






17. 32 bit integer data






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






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






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






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






22. Represents the encapsulation of data and behaviors into a single unit.






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






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






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






26. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






27. 32 bit single precision floating point data






28. 128 bit fixed precision (financial)






29. Just-in-time compilation






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






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






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






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






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






35. System.Byte






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






37. An instance of a class that exists at run-time and is typically referenced via a variable name.






38. Symbols which transform and combine expressions






39. Indicates that the Method can be overridden.






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






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






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






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






44. System.Int16






45. 64 bit integer data






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






47. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






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






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






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