Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

C# QUESTIONS : PART 7

What is the use of Equals() string function ?

The Equals Method in C# compares two string and returns Boolean value as output.

The Equals Method in C# compares two string but it returns no value

The Equals Method in C# compares one integer value and a string value

SHOW ANSWER

What is the use of Replace() string function ?

 This method replaces the character

This method replaces the numbers in the string

This method used to remove the space from the string

SHOW ANSWER

What is the use of Insert() string function?

 Insert the string or character in the string at the specified position.

Insert only character in the string at the specified position.

Insert only special characters in the string at the specified position

SHOW ANSWER

What is the use of trim() string function ?

It removes extra whitespaces from beginning and ending of string

It removes extra whitespaces from ending of string

It removes extra whitespaces from beginning of string

SHOW ANSWER

What is the use of try keyword in exception handling?

 try keyword is used for identifying code block which may cause exception at runtime.

try keyword handle the exception if try block raises exception. The code under try block if raises runtime error, try block sends handler to catch block to handle error..

try keyword is used for creating user defined exception messages

try block executed whether exception is raised or not. It is used for cleaning resource and executing set of code.

SHOW ANSWER

What is the use of catch keyword in exception handling?

catch keyword is used for identifying code block which may cause exception at runtime

catch keyword handle the exception if try block raises exception. The code under try block if raises runtime error, try block sends handler to catch block to handle error.

catch keyword is used for creating user defined exception messages

catch block executed whether exception is raised or not. It is used for cleaning resource and executing set of code.

SHOW ANSWER

What is the use of throw keyword in exception handling?

throw keyword is used for identifying code block which may cause exception at runtime

throw keyword handle the exception if try block raises exception. The code under try block if raises runtime error, try block sends handler to catch block to handle error.

throw keyword is used for creating user defined exception messages.

throw block executed whether exception is raised or not. It is used for cleaning resource and executing set of code.

SHOW ANSWER

What is the use of finally keyword in exception handling?

finally keyword is used for identifying code block which may cause exception at runtime

finally keyword handle the exception if try block raises exception. The code under try block if raises runtime error, try block sends handler to catch block to handle error.

finally keyword is used for creating user defined exception messages

finally block executed whether exception is raised or not. It is used for cleaning resource and executing set of code. .(ans)

SHOW ANSWER

What is the use of braek statement?

 The break statement is used to terminating the current flow of the program and transfer controls to the next execution.

The break statement is used to terminating the current flow of the program.

The break statement is used to transfer controls to the next execution.

 The break statement is used to terminating the current flow of the program and then executes from first line of the program

SHOW ANSWER

The if statement is used to evaluate a boolean expression before executing a set of statements.This statement is ?

SHOW ANSWER

The purpose of using a loop is to

Repeat operation(s) many times
to make a statement
to find the condition is correct
SHOW ANSWER

The purpose of using a loop is to

Repeat operation(s) many times
 to make a statement
to find the condition is correct

SHOW ANSWER

Which of the C# loops is not a pretest loop?

for loop 
while loop  
do while loop
SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in