IndiaBIX.com
Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C++ Programming C# Programming Java Programming
Microbiology Biochemistry Biotechnology Biochemical Engineering
Civil Engineering Mechanical Engineering Chemical Engineering Networking Database Questions Computer Science Basic Electronics Digital Electronics Electronic Devices Circuit Simulation Electrical Enigneering Engineering Mechanics Technical Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing

C# Programming - Datatypes

@ : Home > C# Programming > Datatypes > General Questions

Exercise

  • General Questions
"Example is better than precept."
- (Proverb)
1. 

Which of the following statements are correct about data types?

  1. If the integer literal exceeds the range of byte, a compilation error will occur.
  2. We cannot implicitly convert non-literal numeric types of larger storage size to byte.
  3. Byte cannot be implicitly converted to float.
  4. A char can be implicitly converted to only int data type.
  5. We can cast the integral character codes.

A. 1, 3, 5
B. 2, 4
C. 3, 5
D. 1, 2, 5

2. 

Which of the following is an 8-byte Integer?

A. Char
B. Long
C. Short
D. Byte
E. Integer

3. 

Which of the following is NOT an Integer?

A. Char
B. Byte
C. Integer
D. Short
E. Long

4. 

Which of the following statements is correct?

A. Information is never lost during narrowing conversions.
B. The CInteger() function can be used to convert a Single to an Integer.
C. Widening conversions take place automatically.
D. Assigning an Integer to an Object type is known as Unboxing.
E. 3.14 can be treated as Decimal by using it in the form 3.14F.

5. 

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



© 2008-2013 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

Contact us: info@indiabix.com     Follow us on twitter!