Quiz · Variables and types · lesson 6 of 8Quiz — what var doesWhat does var do, and is the variable it declares dynamically typed?[A]var makes the compiler take the variable's type from its initial value: var x = 5; is exactly int x = 5;. The type is fixed at compile time and never changes, so the variable is statically typed.[B]var declares a value that is fixed after its first assignment, like a const: after var x = 5; the type of x is int, and any later line such as x = 7; stops the build with an error.[C]var makes the variable dynamically typed: its type is decided anew at run time on every assignment, so the same variable can hold an int on one line and a string on the next, with no compile error.[D]var leaves the type open until the program runs: the JIT compiler picks it when the line first executes, which makes a var declaration slightly slower than one with the type written out.← Backvar and constNext →Type conversions