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 result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






2. Indicates that the Method can be overridden.






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






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






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






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






7. System.UInt16






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






9. System.UInt32






10. Allows a Method to be defined in a separate file (within the same Project). If no definition is found the compiler excludes the Method as an optimization.






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






12. System.UInt64






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






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






15. Must have a data type






16. System.Decimal






17. 64 bit integer data






18. Just-in-time compilation






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






20. Symbols which transform and combine expressions






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






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






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






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






25. (< or > or <= or >=)






26. 32 bit single precision floating point data






27. System.Single






28. 64 bit - unsigned integer data






29. Object Oriented Programming relies on dot.notation. Dot Notation enables public methods to be fully accessible from outside an object. Member names are separated by a dot (.). Syntax is method-defined-in-class.bject-in-runtime-of-class






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






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






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






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






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






35. The "Type" name of data that is stored on the Heap






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






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






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






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






40. A Class that inherits characteristics from another Class.






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






42. 32 bit integer data






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






44. Variables defined by a class






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






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






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






48. true or false






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






50. Extra information within a method