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. A symbol that specifies an operation to be performed on one or more variables.






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






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






4. Command Language Runtime






5. A Class that can only have Static Members






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






7. A Class from which other classes can inherit characteristics.






8. (== or !=)






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






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






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






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






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






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






15. 32 bit integer data






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






17. true or false






18. 8 bit - unsigned byte (0 - 255)






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






20. System.Int32






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






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






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






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






25. A Class that cannot be Inherited






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






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






28. System.Int16






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






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






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






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






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






34. Framework Class Library






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






36. System.Decimal






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






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






39. System.Char






40. 32 bit - unsigned integer data






41. Access is limited to the current Assembly






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






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






44. 8 bit - signed byte (-128 - 127)






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






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






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






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






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






50. 128 bit fixed precision (financial)