MCQsLearn App Free MCQsLearn App Download - Android - iOS
As an Amazon Associate I earn from qualifying purchases.

DBMS Notes and Technology Articles

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

String Quiz

MCQ: Operator used for concatenation of two or more strings is

  1. +
  2. +='
  3. &
  4. ||

A

Functions Quiz

MCQ: Functions in C# are a means of providing blocks of code that can

  1. be executed at any point in the an application
  2. decrease the efficiency of the compiler
  3. not be resued
  4. have some parameters

A

Arrays Quiz

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>

  1. run time error
  2. 5,4,3,2,1
  3. compile time error
  4. 1,2,3,4,5

B

Type conversion Quiz

MCQ: Choose the correct statement

  1. Information is never lost during narrowing conversions.
  2. The CInteger() function can be used to convert a Single to an Integer.
  3. Widening conversions take place automatically.
  4. Assigning an Integer to an Object type is known as Unboxing.

C

Enumerations Quiz

MCQ: The complex data types used in C# are

  1. Enum
  2. Struct
  3. Arrays
  4. All of the above

D