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. A Class that cannot be instantiated.






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






4. 32 bit integer data






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






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






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






8. System.Int64






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






10. Text as Unicode characters






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






12. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






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






14. The "Type" name of data that is stored on the Heap






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






16. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio






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






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






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






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






21. Syntax of a C# Method






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






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






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






25. Variables defined by a class






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






27. 32 bit single precision floating point data






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






29. true or false






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






31. true or false






32. 64 bit double precision floating point data






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






34. 32 bit - unsigned integer data






35. Mathematical (+ or - or / or %)






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






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






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






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






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






41. 64 bit integer data






42. (&& or || or & or |)






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






44. System.Single






45. (< or > or <= or >=)






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. The .NET run-time environment that enables code to be compiled and executed.






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






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






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