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. System.Single






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






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






4. 64 bit double precision floating point data






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






6. 32 bit - unsigned integer data






7. System.Byte






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






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






10. (&& or || or & or |)






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






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






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






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






15. Rules defining or outlining the format and construction of statements. Semantics is what statements actually DO Syntax are RULES for how to lay statements out. Example syntax rule; All statements must end in a semicolon.






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






17. System.Char






18. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






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






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






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






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






23. Command Language Runtime






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






25. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






26. A Class that cannot be Inherited






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






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






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






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






31. System.UInt64






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






33. A Class that cannot be instantiated.






34. System.SByte






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






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






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






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






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






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






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






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






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






44. Access is limited to the current Assembly and Derived Types






45. A Class that can only have Static Members






46. Syntax of a C# Method






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






48. 64 bit - unsigned integer data






49. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






50. 32 bit integer data