Home / MCQ Bank / Computer
Computer Basic Syntax And Data Types In C Sharp Difficulty: Medium

Which of the conversions are valid for the following C# code? static void Main(string[] args) { int a = 22; long b = 44; double c = 1.406; b = a; c = a; a = b; b = c; }

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C++ code? #include <iostream> #include <algorithm> #include <vector> using namespace std; int main () { int myints[] = {10, 20, 30, 30, 20, 10, 10, 20}; int mycount = count (myints, myints + 8, 10); cout << mycount; vector<int> myvector (myints, myints + 8); mycount = count (myvector.begin(), myvector.end(), 20); cout << mycount; return 0; } What will be the output of the following Python code? A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] [A[i][i] for i in range(len(A))] How can you achieve runtime polymorphism in C++? What happens if try catch block is not used? The header file assert.h of the C Standard Library defines ______ macro.