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. 8 bit - signed byte (-128 - 127)






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






3. Windows Presentation Foundation






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






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






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






7. Just-in-time compilation






8. System.Single






9. 32 bit integer data






10. System.Int64






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






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






13. Extra information within a method






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






15. A Class that cannot be instantiated.






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






17. A Class that inherits characteristics from another Class.






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






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






20. 32 bit single precision floating point data






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






22. true or false






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






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






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






26. System.SByte






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






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






29. System.Int16






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






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






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






33. true or false






34. Symbols which transform and combine expressions






35. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






36. System.UInt16






37. System.Int32






38. Indicates that the Method can be overridden.






39. Box which can be typed into at runtime. Can display large amounts of scrollable text for the user. To create a scrollable one in Visual Studio set the multiline property to 'TRUE' and the Scrollbars property to 'VERTICAL'.






40. (== or !=)






41. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






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






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






45. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






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






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






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






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






50. Command Language Runtime