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 Class that cannot be instantiated.






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






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






4. Container for one or more Visual Studio Projects.






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. 64 bit double precision floating point data






7. true or false






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






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






10. An instance of a class that exists at run-time and is typically referenced via a variable name.






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






12. Allow access to types that exist in outside assemblies.






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






14. Integrated Development Environment






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






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






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






18. System.SByte






19. System.Single






20. 32 bit - unsigned integer data






21. The member type of a Class that performs an action.






22. A Class that cannot be Inherited






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






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






25. 128 bit fixed precision (financial)






26. System.Int32






27. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






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






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






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






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






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






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






34. Variables defined by a class






35. Symbols which transform and combine expressions






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






37. System.Char






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






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






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






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






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






43. 64 bit integer data






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






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






46. Text as Unicode characters






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






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






49. Windows Presentation Foundation






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