.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> Sql Server >> Post New Question Subscribe to Interview Questions

You have a column that will only contain values from 0 to 256. What's the most economical data type to use for the column?

A. TINYINT
B. SMALLINT
C. INT
D. DECIMAL(3)
E. VARCHAR(3)


Posted By :Syed Shakeer Hussain     Posted Date :September 17, 2010    Points :10   Category :Sql Server 
Correct Answer : B
Explanation:-
------------
A SMALLINT data type uses only 2 bytes of data and can store value from -32,768 to 32,767. A TINYINT data type cannot be used because the maximum value it can hold is 255. Although an INT data type can be used, SMALLINT will use only 2 bytes compared to INT's 4 bytes. VARCHAR(3) will use 3 bytes while DECIMAL(3) will use 5 bytes.


You can also find related Interview Question to You have a column that will only contain values from 0 to 256. What''s the most economical data type to use for the column? A. TINYINT B. SMALLINT C. INT D. DECIMAL(3) E. VARCHAR(3)  below: 

Can we declare column with xml data type to hold xml data?

  
Yes, A column with xml data type can be declared. (More...)

Which property on a Combo Box do you set with a column name, prior to setting the Data Source, to display data in the combo box?

  
ComboBox.DataValueField = "ColumnName"

When we use Databind method for the Combo box we set Display Member and Display Value property to column name. (More...)

What is the minimum value of TINYINT data type?

  
0 is the minimum value of TINYINT data type (More...)

What are the data types which are supported as Lookup column in SharePoint.

  
Only Single Line of Text and Calculated columns are supported as lookup columns. (More...)

Which command is use to convert column values into column name?

  
Pivot table is use to convert column values into column name. It can be use to rotate the table. (More...)

Will COUNT(column) include columns with null values in its count?

  
Yes, COUNT(column) include columns with null values in its count? (More...)

What is Managed metadata column of type in CAML Query?

  
Managed metadata column is of type "TaxonomyFieldType"

Ex.





Pune


(More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend