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 Member that cannot be accessed/invoked through an Object Instance.






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






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






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






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






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






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






8. Text as Unicode characters






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






10. 64 bit integer data






11. Command Language Runtime






12. Access is limited to the current Assembly






13. 64 bit integer data






14. A Class that cannot be Inherited






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






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






17. 32 bit single precision floating point data






18. A Class that inherits characteristics from another Class.






19. System.Char






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






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






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






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






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






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






26. Characteristics of an object. Something an object has. Provides a specific access point to data within a field






27. Names reserved by the compiler that coders are not allowed to use as identifiers.






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






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






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






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






32. System.Single






33. Keyword which exposes members to other classes OR Identifier which makes program elements public






34. System.Int16






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






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






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






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






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






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






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






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






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






44. 64 bit - unsigned integer data






45. Symbols which transform and combine expressions






46. 32 bit integer data






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






48. Restricts access to a Member to the current Class.






49. 64 bit double precision floating point data






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