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. 32 bit - unsigned integer data






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






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






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






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






6. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).






7. System.Int16






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






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






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






11. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






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






13. The process of hiding and restricting access to the implementation details of a data structure.






14. 32 bit integer data






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






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






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






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






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






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






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






22. A Class that can only have Static Members






23. 32 bit integer data






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






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






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






27. System.UInt64






28. Extra information within a method






29. Access is limited to the current Assembly






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






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






32. (< or > or <= or >=)






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






34. A Class that inherits characteristics from another Class.






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






36. (== or !=)






37. Integrated Development Environment






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






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






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






41. 64 bit integer data






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






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






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






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






46. System.Int32






47. Indicates that the Method can be overridden.






48. 64 bit double precision floating point data






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






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