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. count = count+1 or count++ or count__. Both count variables are Unary Operators






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






3. A Class that can only have Static Members






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






5. Allows the definition of a Class to span multiple files (within the same Project)






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






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






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






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






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






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






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






13. Must have a data type






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






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






16. Windows Presentation Foundation






17. 128 bit fixed precision (financial)






18. (&& or || or & or |)






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






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






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






22. Just-in-time compilation






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






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






25. (< or > or <= or >=)






26. System.Decimal






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






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






29. System.Char






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






31. 64 bit double precision floating point data






32. System.UInt64






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






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






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






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






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






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






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






40. Container for one or more Visual Studio Projects.






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






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






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






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






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






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






47. System.UInt32






48. Framework Class Library






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






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