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. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






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






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






4. System.Decimal






5. 32 bit integer data






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






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






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






9. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio






10. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5






11. System.Single






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






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






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






15. 64 bit double precision floating point data






16. Code which implements GUI (graphical User Interface).






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. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






19. Allows a Method to be defined in a separate file (within the same Project). If no definition is found the compiler excludes the Method as an optimization.






20. A Class that inherits characteristics from another Class.






21. Syntax of a C# Method






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






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






24. (&& or || or & or |)






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






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






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






28. Specifies that the Method includes no implementation and must be overridden in a deriving class - where it will get its definition. Can only be part of an Abstract Class.






29. Text as Unicode characters






30. 16 bit - signed integer data (-32768 to 32767)






31. 128 bit fixed precision (financial)






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






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






34. System.Int16






35. System.Double






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






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






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






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






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






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






42. A Class that cannot be Inherited






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






44. 64 bit - unsigned integer data






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






46. When a sub class passes down all the behaviours of the original parent class






47. A Class from which other classes can inherit characteristics.






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






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






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