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






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






3. 128 bit fixed precision (financial)






4. Represents the encapsulation of data and behaviors into a single unit.






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






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






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






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






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






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






11. true or false






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






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






14. Command Language Runtime






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






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






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






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






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






20. A Class that cannot be instantiated.






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






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






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






24. Something that has a different number of parameters to it's predecessor






25. 64 bit - unsigned integer data






26. System.Single






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






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






29. System.Decimal






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






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






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






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






34. 64 bit integer data






35. Access is limited to the current Assembly






36. Framework Class Library






37. System.Byte






38. Series of instructions which tell a computer what to do.






39. System.Char






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






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






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






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






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






45. System.Double






46. true or false






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






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






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






50. System.SByte