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

DBMS Notes and Technology Articles

if Statement Practice Test PDF Download eBook - 54

Practice if Statement mock test for exam, if statement MCQ with answers PDF to solve app development worksheet 54 for online past papers exam. Practice Flow Control trivia questions and answers, if statement Multiple Choice Questions (MCQ) to solve c sharp test with answers for online information technology degree. Free if statement MCQs, MCQs, exception handling, delegates, functions, string, if statement test prep for programming certifications.

"Correct syntax for an if statement is", if statement Multiple Choice Questions (MCQ) with choices if (condition) { else if(condition) { < code>; } } else { <code >; }, if (condition) { < code>; } else { <code >; }, if (condition) { else { < code>; } } else { <code >; }, and both a and b to study distance learning courses. Learn flow control questions and answers with free online certification courses for IT certifications.

Trivia Quiz on if Statement PDF Download eBook 54

if Statement Quiz

MCQ: Correct syntax for an if statement is

  1. if (condition) { < code>; } else { <code >; }
  2. if (condition) { else if(condition) { < code>; } } else { <code >; }
  3. if (condition) { else { < code>; } } else { <code >; }
  4. both a and b

D

String Quiz

MCQ: If s1 and s2 are references to two strings, then which of the following is the correct way to compare the two references

  1. s1 is s2
  2. s1=s2
  3. s1==s2
  4. s1.Equals(s2)

D

Functions Quiz

MCQ: The data types that can be used for a method having a return statement in it are

  1. void
  2. int
  3. delegates
  4. struct

D

Delegates Quiz

MCQ: The encapsulation of the idea that "something happened" to which the program must respond is

  1. event
  2. delegate
  3. event-delegate method
  4. functions

A

Exception Handling Quiz

MCQ: The keyword used to monitor exceptions is

  1. try
  2. finally
  3. throw
  4. catch

A