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 "Type" name of data that is stored on the Stack






2. System.UInt32






3. System.Int32






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






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






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






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






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






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






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






11. Variables defined by a class






12. Syntax of a C# Method






13. Integrated Development Environment






14. 32 bit integer data






15. Text as Unicode characters






16. Command Language Runtime






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






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






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






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






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






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






23. A Class that cannot be Inherited






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






25. 64 bit integer data






26. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






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






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






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






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






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






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






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






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






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






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






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






38. (== or !=)






39. (&& or || or & or |)






40. 64 bit double precision floating point data






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






42. System.Single






43. 32 bit single precision floating point data






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






45. System.Char






46. (< or > or <= or >=)






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






48. 32 bit - unsigned integer data






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






50. System.Decimal