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. Allows the definition of a Class to span multiple files (within the same Project)






2. Integrated Development Environment






3. 8 bit - signed byte (-128 - 127)






4. System.Double






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






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






7. Extra information within a method






8. System.Single






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






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






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






12. System.SByte






13. A symbol that specifies an operation to be performed on one or more variables.






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






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






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






17. A Class that cannot be Inherited






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






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






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






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






22. System.Int32






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






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






25. 32 bit integer data






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






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






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






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






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






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






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






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






34. Command Language Runtime






35. Windows Presentation Foundation






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






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






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






39. 32 bit - unsigned integer data






40. System.UInt64






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






42. System.Decimal






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






44. A Class that inherits characteristics from another Class.






45. Symbols which transform and combine expressions






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






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






48. Sits behind GUI (Graphical User Interface) and provides event listeners






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






50. (< or > or <= or >=)