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. Restricts access to a Member to the current Class and any Derived Class.






2. System.Int64






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






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






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






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






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






8. Integrated Development Environment






9. Extra information within a method






10. A Class that cannot be instantiated.






11. (&& or || or & or |)






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






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






14. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.






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






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






17. 128 bit fixed precision (financial)






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






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






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






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






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






23. true or false






24. Text as Unicode characters






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






26. System.UInt32






27. System.Int16






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






29. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






30. (== or !=)






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






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






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






34. 64 bit integer data






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






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






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






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






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






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






41. true or false






42. System.SByte






43. Windows Presentation Foundation






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






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






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






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






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






49. System.Char






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