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. Allow access to types that exist in outside assemblies.






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






3. Allows a Method to be defined in a separate file (within the same Project). If no definition is found the compiler excludes the Method as an optimization.






4. System.UInt16






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






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






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






8. Access is limited to the current Assembly






9. Only requires one operand usually a count+1 or a count++ or a count--






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






11. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism






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






13. A Class that inherits characteristics from another Class.






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






15. Extra information within a method






16. Syntax of a C# Method






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






18. 64 bit - unsigned integer data






19. 64 bit integer data






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






21. (&& or || or & or |)






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






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






24. Container for one or more Visual Studio Projects.






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






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






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






28. A Class that cannot be instantiated.






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






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






31. System.Char






32. A Class that can only have Static Members






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






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






35. 64 bit double precision floating point data






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






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






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






39. true or false






40. Used to display text that end user does not need to edit.






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






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






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






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






45. Windows Presentation Foundation






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






47. System.Int32






48. System.UInt64






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






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