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. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.






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






3. (== or !=)






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






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






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






7. 64 bit double precision floating point data






8. A Class that cannot be instantiated.






9. Syntax of a C# Method






10. System.UInt32






11. Variables defined by a class






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






13. System.Int16






14. The lowest level or fundamental data types needed for representing data.






15. System.Int64






16. 64 bit integer data






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






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






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






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






21. Field whose value can never change. Declared with 'const' keyword






22. A Class that inherits characteristics from another Class.






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






24. 128 bit fixed precision (financial)






25. Used to display text that end user does not need to edit.






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






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






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






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






30. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






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






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






33. Contains the class definitions that allow access to the functionality provided by .NET.






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






35. System.Single






36. System.Byte






37. Something that has a different number of parameters to it's predecessor






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






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






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






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






42. System.UInt64






43. Windows Presentation Foundation






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






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






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






47. Rules defining or outlining the format and construction of statements. Semantics is what statements actually DO Syntax are RULES for how to lay statements out. Example syntax rule; All statements must end in a semicolon.






48. System.Decimal






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






50. Framework Class Library