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. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging






2. Variables defined by a class






3. Must have a data type






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






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






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






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. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.






9. 64 bit integer data






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






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






12. System.Int32






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






14. true or false






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






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






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






18. 32 bit integer data






19. System.Int16






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






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






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






23. (&& or || or & or |)






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






25. System.Double






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






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






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






29. System.Decimal






30. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






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






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






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






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






35. Code which signifies a carriage return. Symbolises a new line in a text box.






36. System.Char






37. (< or > or <= or >=)






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






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






40. true or false






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






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






43. Just-in-time compilation






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






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






46. System.Single






47. Symbols which transform and combine expressions






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






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






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