String MCQ with Answers PDF Download eBook - 20
Solve String multiple choice questions and answers PDF, string quiz answers PDF to learn web development worksheet 20 for online mock test. Practice String Manipulation quiz questions, string Multiple Choice Questions (MCQ) to solve c sharp test with answers for online computer science degree. Free string MCQs, enumerations, type conversion, arrays, functions, string test prep for programming certifications.
"Operator used for concatenation of two or more strings is", string Multiple Choice Questions (MCQ) with choices +=', +, &, and || for computer science online degree programs. Learn string manipulation questions and answers with free online certification courses for IT certifications.
String Questions and Answers PDF Download eBook 20
MCQ: Operator used for concatenation of two or more strings is
- +
- +='
- &
- ||
A
MCQ: Functions in C# are a means of providing blocks of code that can
- be executed at any point in the an application
- decrease the efficiency of the compiler
- not be resued
- have some parameters
A
MCQ: Choose the correct output for the given code <br/> <code> static void Main() { int[] nums = { 1, 2, 3, 4, 5 }; Console.Write("Original order: "); foreach(int i in nums) Console.Write(i + " "); Array.Reverse(nums); Console.Write("Reversed order: "); foreach(int i in nums) Console.Write(i + " "); Console.WriteLine(); } </code>
- run time error
- 5,4,3,2,1
- compile time error
- 1,2,3,4,5
B
MCQ: Choose the correct statement
- Information is never lost during narrowing conversions.
- The CInteger() function can be used to convert a Single to an Integer.
- Widening conversions take place automatically.
- Assigning an Integer to an Object type is known as Unboxing.
C
MCQ: The complex data types used in C# are
- Enum
- Struct
- Arrays
- All of the above
D