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

Select the correct differences between char and varchar data types? i. varchar is non unicode and char is unicode character data type ii. char is 'n' bytes whereas varchar is actual length in bytes of data entered in terms of storage size iii. varchar is variable in length and char is the fixed length string iv. For varchar, if a string is less than the maximum length then it is stored in verbatim without any extra characters while for char if a string is less than the set length it is padded with extra characters to equalize its length to given length

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C++ code? #include <iostream> #include <complex> using namespace std; int main() { complex<double> c1(4.0, 16.0), c2; c2 = pow(c1, 2.0); cout << c2; return 0; } What will be the output of the following Python function? all([2,4,0,6]) Which of the following is not true about modifying table columns? What will be the output of the following C code? #include <stdio.h> void main() { int y = 3; int x = 5 % 2 * 3 / 2; printf("Value of x is %d", x); } What is the first argument in command line arguments?