Have any questions?
[email protected]
English
Vietnamese
French
Spanish
Korean
Japanese
Thai
Chinese
Indonesian
Login
Signup
Contact
Login
Home
Correct way to assign values to variable c when int a=12, float b=3.5,int c;
Question 1:
Correct way to assign values to variable c when int a=12, float b=3.5,int c;
A.
c = a + b
B.
c = a + int(float(b))
C.
c = a + convert.ToInt32(b)
D.
c = int(a + b)
These questions are from this test. Would you like to take a practice test?
C Sharp Quiz 3 | Englishfreetest.com
20 minutes
10 questions
Do test
Some questions from the same exam
What is the maximum size of the VARCHAR column type?
Which datatype should be more preferred for storing a simple number like 35 to improve execution speed of a program?
What is the output of the following code?
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
?>
Which of the following types of cursors is available with ADO.NET DataReader object?
Correct way to assign values to variable c when int a=12, float b=3.5,int c;
Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PHP 4?
Which of the following variable types can be assigned a value directly in C#?
Which of the following is correct about reference type variables in C#?
Which of the following converts a type to a signed byte type in C#?
Which of the following operator returns the size of a data type in C#?
Some other questions you may be interested in
In the winter, I have to ....... the snow off of my driveway so that I can get my car out of the garage.
I'm going to ....... my car on the weekend. It's very dirty.
I have to rake the ....... in my yard in the fall. Otherwise, my yard doesn't look very good.
I ....... my sidewalk with an outdoor broom so that it looks clean. Dirt accumulates on it fairly quickly.
My fence looks old and the original color has faded. I think I'm going to ....... it this weekend so it looks new*^*again.
Will you ....... the shrubs this weekend? We need to remove all of the old, dead leaves and branches so they*^*look good again.