Deck 1: C# Programming Language and Visual Studio IDE
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/21
Play
Full screen (f)
Deck 1: C# Programming Language and Visual Studio IDE
1
A variable which is declared inside a method is called a________variable
A)Serial
B)Local
C)Private
D)Static
A)Serial
B)Local
C)Private
D)Static
Local
2
Which is the String method used to compare two strings with each other ?
A)Compare To()
B)Compare()
C)Copy()
D)ConCat()
A)Compare To()
B)Compare()
C)Copy()
D)ConCat()
Compare()
3
Minimum and Maximum range of values supported by 'float' data type are ?
A)1.5 * 10 ^-40 to 3.4 * 10 ^38
B)1.5 * 10 ^-45 to 3.4 * 10 ^30
C)1.5 * 10 ^-45 to 3.4 * 10 ^38
D)1.5 * 10 ^-45 to 3.4 * 10 ^37
A)1.5 * 10 ^-40 to 3.4 * 10 ^38
B)1.5 * 10 ^-45 to 3.4 * 10 ^30
C)1.5 * 10 ^-45 to 3.4 * 10 ^38
D)1.5 * 10 ^-45 to 3.4 * 10 ^37
1.5 * 10 ^-45 to 3.4 * 10 ^38
4
Which datatype should be more preferred for storing a simple number like 35 to improve execution speed of a program?
A)sbyte
B)short
C)int
D)long
A)sbyte
B)short
C)int
D)long
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
5
What will be output of the following conversion ?
Static void Main(string[] args){char a = 'A';
String b = "a";
Console.WriteLine(Convert.ToInt32(a));
Console.WriteLine(Convert.ToInt32(Convert.Tochar(b)));
Console.ReadLine();
}
A)1, 97
B)65, 97
C)65, 97.
D)97, 1
Static void Main(string[] args){char a = 'A';
String b = "a";
Console.WriteLine(Convert.ToInt32(a));
Console.WriteLine(Convert.ToInt32(Convert.Tochar(b)));
Console.ReadLine();
}
A)1, 97
B)65, 97
C)65, 97.
D)97, 1
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
6
Scope of variable is related to definition of variable as:
1) Region of code within which variable value is valid and hence can be accessed.
2) No, relation with region where variable is declared its value is valid in entire scope.
A)a
B)b
C)a, b
D)None of the mentioned
1) Region of code within which variable value is valid and hence can be accessed.
2) No, relation with region where variable is declared its value is valid in entire scope.
A)a
B)b
C)a, b
D)None of the mentioned
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
7
Type of Conversion in which compiler is unable to convert the datatype implicitly is ?
A)ushort to long
B)int to uint
C)ushort to long.
D)byte to decimal
A)ushort to long
B)int to uint
C)ushort to long.
D)byte to decimal
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
8
Select output of the given set of Code :static void Main(string[] args){String name = "Dr.Gupta"; Console.WriteLine("Good Morning" + name);
}
A)Dr.Gupta
B)Good Morning
C)Good Morning Dr.Gupta
D)Good Morning name
}
A)Dr.Gupta
B)Good Morning
C)Good Morning Dr.Gupta
D)Good Morning name
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following is an 8-byte Integer?
A)Char
B)Long
C)Short
D)Byte
A)Char
B)Long
C)Short
D)Byte
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
10
Which of the following are value types?
1)Integer
2)Array
3)Single
4)String
5)Long
A)1, 2, 5
B)1, 3, 5
C)2, 4
D)3, 5
1)Integer
2)Array
3)Single
4)String
5)Long
A)1, 2, 5
B)1, 3, 5
C)2, 4
D)3, 5
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following does not store a sign?
A)Short
B)Integer
C)Long
D)Byte
A)Short
B)Integer
C)Long
D)Byte
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
12
What is the size of a Decimal?
A)4 byte
B)8 byte
C)16 byte
D)32 byte
A)4 byte
B)8 byte
C)16 byte
D)32 byte
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following is the correct size of a Decimal datatype?
A)8 Bytes
B)4 Bytes
C)10 Bytes
D)16 Bytes
A)8 Bytes
B)4 Bytes
C)10 Bytes
D)16 Bytes
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following statements is correct?
A)When a class inherits an interface it inherits member definitions as well as its implementations.
B)An interface cannot contain the signature of an indexer.
C)Interfaces members are automatically public.
D)To implement an interface member, the corresponding member in the class must be public as well as static.
A)When a class inherits an interface it inherits member definitions as well as its implementations.
B)An interface cannot contain the signature of an indexer.
C)Interfaces members are automatically public.
D)To implement an interface member, the corresponding member in the class must be public as well as static.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following can implement an interface?
1)Data
2)Class
3)Enum
4)Structure
5)Namespace
A)1, 3
B)2, 4
C)3, 5
D)4 only
1)Data
2)Class
3)Enum
4)Structure
5)Namespace
A)1, 3
B)2, 4
C)3, 5
D)4 only
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following is the correct output of the C#.NET code snippet given below?
Int[ , , ] a = new int[ 3, 2, 3 ];
Console.WriteLine(a.Length);
A)20
B)4
C)18
D)10
Int[ , , ] a = new int[ 3, 2, 3 ];
Console.WriteLine(a.Length);
A)20
B)4
C)18
D)10
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
17
Which of the following are NOT Relational operators in C#.NET?
1)>=
2)!=
3)Not
4)<=
5)<>=
A)1, 3
B)2, 4
C)3, 5
D)4, 5
1)>=
2)!=
3)Not
4)<=
5)<>=
A)1, 3
B)2, 4
C)3, 5
D)4, 5
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following is NOT an Assignment operator in C#.NET?
A)\=
B)/=
C)*=
D)+=
A)\=
B)/=
C)*=
D)+=
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
19
A GUI:
A)uses buttons, menus, and icons.
B)should be easy for a user to manipulate.
C)stands for Graphic Use Interaction.
D)Both a and b.
A)uses buttons, menus, and icons.
B)should be easy for a user to manipulate.
C)stands for Graphic Use Interaction.
D)Both a and b.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
20
Visual Studio .NET provides which feature:
A)debugging.
B)application deployment.
C)syntax checking.
D)All of the above..
A)debugging.
B)application deployment.
C)syntax checking.
D)All of the above..
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
21
Which is not a main component of the Visual Studio IDE?
A)Solution Explorer
B)Tool Box
C)Start Menu
D)Designer Window
A)Solution Explorer
B)Tool Box
C)Start Menu
D)Designer Window
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck