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. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






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






3. 32 bit - unsigned integer data






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






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






6. Must have a data type






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






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






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






10. Windows Presentation Foundation






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






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






13. System.UInt32






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






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






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






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






18. System.UInt16






19. true or false






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






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






22. 32 bit integer data






23. Text as Unicode characters






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






25. Just-in-time compilation






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






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






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






29. 64 bit integer data






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






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






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






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






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






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






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






37. 32 bit single precision floating point data






38. System.Char






39. Symbols which transform and combine expressions






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






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






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






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






44. Indicates that the Method can be overridden.






45. Introduces a new class. Marked by curly brackets { }






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






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






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






49. System.Int64






50. System.Byte