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. Only requires one operand usually a count+1 or a count++ or a count--






2. System.Int16






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






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






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






6. Command Language Runtime






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






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






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






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






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






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






13. Windows Presentation Foundation






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






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






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






17. 64 bit integer data






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






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






21. System.SByte






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






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






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






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






26. 64 bit - unsigned integer data






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






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






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






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






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






32. System.UInt32






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






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






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






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






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






38. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






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






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






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






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






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






44. 64 bit double precision floating point data






45. (== or !=)






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






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






48. Text as Unicode characters






49. System.Double






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