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. 32 bit integer data






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 type of statement that produces a value that might be tested or assigned to a variable.






4. Container for one or more Visual Studio Projects.






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






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






7. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.






8. System.UInt32






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






10. (< or > or <= or >=)






11. A Member that cannot be accessed/invoked through an Object Instance.






12. Text as Unicode characters






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






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






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






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






17. Syntax of a C# Method






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






19. Indicates that the Method can be overridden.






20. 64 bit integer data






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






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






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






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






25. (== or !=)






26. Must have a data type






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






28. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






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






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






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






32. System.Double






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






34. Windows Presentation Foundation






35. Just-in-time compilation






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






37. System.SByte






38. System.Char






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






40. Symbols which transform and combine expressions






41. 32 bit - unsigned integer data






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






43. System.Int16






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






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






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






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






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






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






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