Quiz

Here is a short quiz to test your basic understanding of the concepts explained in this chapter.

1

What is the output of the following code?

import std.stdio;

void main() {
    char conversionRate;

    // Assigning the value 200.20 to the conversionRate variable:
    conversionRate = 200.20;

    writeln("Today's convertion rate is ", conversionRate); 
}
A)

Today’s conversion rate is 200.20

B)

Today’s conversion rate is conversionRate

C)

An error will be thrown

D)

None of the above

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.