Have any questions?
[email protected]
English
Vietnamese
French
Spanish
Korean
Japanese
Thai
Chinese
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
This disputed territory is a Malaysian state, located on the island of Borneo.
This disputed area is a group of islands and reefs, located between the Macclesfield Bank and Luzon, Philippines in the South China Sea.
This extinct volcanic ridge is in the western Philippine Sea.
This province of the Philippines borders Nueva Ecija, Quirino, Isabela, Quezon, Bulacan and Nueva Ecija.
What kind of reptile is a national symbol of Cuba?
What is the national animal of Egypt?