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. Variables defined by a class






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. A Class that cannot be Inherited






4. System.Int32






5. Just-in-time compilation






6. System.UInt64






7. Allow access to types that exist in outside assemblies.






8. Command Language Runtime






9. 32 bit integer data






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






11. System.Double






12. System.Int16






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






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






15. Syntax of a C# Method






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






17. 128 bit fixed precision (financial)






18. System.UInt32






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






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






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






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






23. A Class that inherits characteristics from another Class.






24. A Class that cannot be instantiated.






25. (< or > or <= or >=)






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






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






28. (== or !=)






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






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






31. The "Type" name of data that is stored on the Stack






32. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






49. Must have a data type






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