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. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.






2. System.Double






3. Windows Presentation Foundation






4. System.Int64






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






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






7. (&& or || or & or |)






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






9. Groups classes together so that they have a unique identifier






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






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






12. Syntax of a C# Method






13. 64 bit integer data






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






15. Container for one or more Visual Studio Projects.






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






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






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






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






20. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






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






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






23. System.UInt32






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






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






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






27. System.Char






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






29. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).






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






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






32. 32 bit - unsigned integer data






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






34. Code which signifies a carriage return. Symbolises a new line in a text box.






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






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






37. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






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






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






40. 32 bit integer data






41. Command Language Runtime






42. System.Int32






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






44. Introduces a new class. Marked by curly brackets { }






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






46. true or false






47. System.Byte






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






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






50. Just-in-time compilation