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






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






3. System.SByte






4. System.Single






5. A Class that inherits characteristics from another Class.






6. Framework Class Library






7. Integrated Development Environment






8. Just-in-time compilation






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






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






11. System.Int32






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






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






14. Variables defined by a class






15. 32 bit integer data






16. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging






17. System.Int64






18. Command Language Runtime






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






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






21. 32 bit single precision floating point data






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






23. Syntax of a C# Method






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






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






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






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






28. (&& or || or & or |)






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






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






31. The .NET run-time environment that enables code to be compiled and executed.






32. 64 bit double precision floating point data






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






34. Symbols which transform and combine expressions






35. A Class that cannot be instantiated.






36. Container for one or more Visual Studio Projects.






37. true or false






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






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






40. System.UInt32






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






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






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






44. 64 bit - unsigned integer data






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






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






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






48. System.Double






49. System.Int16






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