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. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






2. 32 bit integer data






3. Runs in a command prompt window rather than a GUI (graphical User Interface) one.






4. Symbols which transform and combine expressions






5. A Class that cannot be instantiated.






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






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






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






9. System.Char






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






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






12. System.UInt32






13. System.Decimal






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






15. System.Single






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






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






18. A Class that cannot be Inherited






19. Access is limited to the current Assembly






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






21. 128 bit fixed precision (financial)






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






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






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






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






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






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






28. System.Double






29. true or false






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






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






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






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






34. A Class that can only have Static Members






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






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






37. Must have a data type






38. Sits behind GUI (Graphical User Interface) and provides event listeners






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






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






41. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






42. Container for one or more Visual Studio Projects.






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






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






45. (< or > or <= or >=)






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






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






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






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






50. Command Language Runtime