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. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






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






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






4. Variables defined by a class






5. Just-in-time compilation






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






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






8. System.UInt32






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






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






11. A method that is called whenever an Object is created. The method uses the same name as the Class.






12. 64 bit - unsigned integer data






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






14. (&& or || or & or |)






15. Syntax of a C# Method






16. 32 bit - unsigned integer data






17. Framework Class Library






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






19. System.Int32






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






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






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






23. A Class that can only have Static Members






24. (== or !=)






25. A Class that cannot be Inherited






26. System.Single






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






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






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






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






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






32. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






33. Container for one or more Visual Studio Projects.






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






35. true or false






36. Text as Unicode characters






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






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






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






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






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






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






43. Mathematical (+ or - or / or %)






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






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






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






47. System.Int16






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






49. Names used to identify program elements (e.g. namespaces & classes & methods & variables). Must always start with a letter. Always case sensitive. When multiword must be presented in CamelCase. keywords are an example of an identifier.






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