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. Mathematical (+ or - or / or %)






2. 16 bit - unsigned integer data (0 to 65535)






3. Symbols which transform and combine expressions






4. 32 bit single precision floating point data






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






6. A Class that inherits characteristics from another Class.






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






8. System.Single






9. 64 bit - unsigned integer data






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






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






12. A Class that can only have Static Members






13. (&& or || or & or |)






14. System.Byte






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






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






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






18. A Class that cannot be instantiated.






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






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






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






22. Framework Class Library






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






24. System.UInt64






25. Most common kind of reference type. They define objects. They must have at least one method and one field.






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






27. 32 bit integer data






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






29. Just-in-time compilation






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






31. 32 bit - unsigned integer data






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






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






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






35. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.






36. System.Char






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






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






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






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






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






42. (< or > or <= or >=)






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






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






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






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






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






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






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






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