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. The "Type" name of data that is stored on the Stack






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






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






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






5. A Class that inherits characteristics from another Class.






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






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






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






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






10. System.Decimal






11. 32 bit - unsigned integer data






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






13. Windows Presentation Foundation






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






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






16. 64 bit integer data






17. System.Int32






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






19. Word that stores a value. Storage location that holds a value. Type and name of variable must be declared in a statement. Must be explicitly declared before use. Uses CamelCase notation.






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






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






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






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






24. Syntax of a C# Method






25. (&& or || or & or |)






26. 64 bit - unsigned integer data






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






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






29. (== or !=)






30. 16 bit - unsigned integer data (0 to 65535)






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






32. 32 bit single precision floating point data






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






34. true or false






35. Must have a data type






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






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






38. System.Int16






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






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






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






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






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






44. System.UInt64






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






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






47. true or false






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






49. A Class that cannot be Inherited






50. The lowest level or fundamental data types needed for representing data.