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. Windows Presentation Foundation






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






3. System.UInt32






4. Syntax of a C# Method






5. Only requires one operand usually a count+1 or a count++ or a count--






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






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






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






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






10. System.Double






11. A Class that inherits characteristics from another Class.






12. System.Decimal






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






14. 32 bit integer data






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






16. true or false






17. System.Char






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






19. Must have a data type






20. (&& or || or & or |)






21. 32 bit integer data






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






23. 32 bit single precision floating point data






24. Text as Unicode characters






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






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






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






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






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






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






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






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






33. System.Single






34. System.SByte






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






36. System.UInt16






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






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






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






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






41. true or false






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






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






44. Symbols which transform and combine expressions






45. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






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






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






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






49. (== or !=)






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