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






2. Symbols which transform and combine expressions






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






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






5. (< or > or <= or >=)






6. Syntax of a C# Method






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






8. count = count+1 or count++ or count__. Both count variables are Unary Operators






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






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






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






12. System.SByte






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






14. 64 bit integer data






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






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






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






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






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






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






21. Extra information within a method






22. Text as Unicode characters






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






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






25. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.






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






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






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






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






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






31. A Class that cannot be instantiated.






32. 32 bit - unsigned integer data






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






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






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






36. 128 bit fixed precision (financial)






37. 64 bit double precision floating point data






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






39. System.Single






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






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






42. (== or !=)






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






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






45. Command Language Runtime






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






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






48. Restricts access to a Member to the current Class and any Derived Class.






49. System.UInt16






50. Integrated Development Environment