Home / MCQ Bank / Computer
Computer Control Flow Statements In C Sharp

What will be the output of the following C# code? static void Main(string[] args) { float i = 1.0f, j = 0.05f; do { Console.WriteLine(i++ - ++j); }while (i < 2.0f && j <= 2.0f); Console.ReadLine(); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • -0.04999995

Related Computer Questions

What will be the output of the following C code? #include <stdio.h> int main() { int x = 2, y = 0; int z = x && y = 1; printf("%d\n", z); } What will be the output of the following Python code? L = [lambda x: x ** 2, lambda x: x ** 3, lambda x: x ** 4] for f in L: print(f(3)) What is the term for the process of using machine learning to analyze and interpret complex biological data, such as DNA sequences? What will be the output? public class Test{ public static void main(String[] args){ int x=10, y=0; if(x && y){ System.out.print("TRUE"); } else{ System.out.print("FALSE"); } } } In a data science capstone project, why is "model deployment" often considered a challenging phase?