Tutorials
Tutorials
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
double x = 10.25;
Console.Write(Convert.ToInt32(x));
}
}
}
A. 10.30
B. 10.25
C. 10
D. Error
9. Variable that value does not change during the execution of program is ----------
A. Variable
B. Constant
C. Numeric
D. None of the above
10. What will be the output of the following C# code, if the input is 123?
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
Console.WriteLine("Enter a number:");
int num = Console.ReadLine();
Console.WriteLine("Given number is: " + num);
}
}
}
A. Given number is:123
B. Given number is: 123
C. Given number is: ”123”
D. Error
12. The C# and Visual Basic .NET belong to this type of programming language.
A. Assembly language
B. Machine language
C. High level programming language
D. Object oriented programming language
13. To declare an integer variable in VB.NET language, which one of the following
statements is true?
A. x As Integer
B. Dim x As Single
C. Dim x As Integer
D. Dim x As Int
14. Visual Basic is a tool that allows you to develop application in…………
A. Real time
B. Graphical User Interface
C. Any time
D. None of the above
TRUE OR FALSE