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. Used to display text that end user does not need to edit.






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






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






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






5. System.UInt16






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






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






8. System.Int32






9. 64 bit double precision floating point data






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






11. Windows Presentation Foundation






12. 64 bit - unsigned integer data






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






14. 32 bit - unsigned integer data






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






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






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






18. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






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






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






21. true or false






22. 32 bit integer data






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






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






25. Variables defined by a class






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






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






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






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






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






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






32. 32 bit single precision floating point data






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






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






35. Integrated Development Environment






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






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






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






39. Extra information within a method






40. true or false






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






42. A Class that can only have Static Members






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






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






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






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






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






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






49. A Class that cannot be instantiated.






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