Array elements are always stored in _________ memory locations.
sequential
random
sequential and random
none of the above
Q.2.
Is right way to Initialization array?
int num[6] = { 2, 4, 12, 5, 45, 5 } ;
int n{} = { 2, 4, 12, 5, 45, 5 } ;
int n{6} = { 2, 4, 12 } ;
int n(6) = { 2, 4, 12, 5, 45, 5 } ;
Q.3.
Is an array?
an array is a collection of variables that are of the dissimilar data typ
an array is a collection of variables that are of the same data typ
an array is not a collection of variables that are of the same data typ
none of the abov
Q.4.
Of the following shows the correct hierarchy of arithmetic operations in C
/ + * -
* - / +
+ - / *
* / + -
Q.5.
C variable cannot start with
an alphabet
a number
a special symbol other than underscore
both (b) and (c)
Q.6.
Programs are converted into machine language with the help of
an editor
a compiler
an operating system
none of the above
Q.7.
Language developed at _____?
at & t\s bell laboratories of usa in 1972
at & t\s bell laboratories of usa in 1970
sun microsystems in 1973
cambridge university in 1972
Q.8.
Short testarray[4][= { {1}, {2,3}, {4,5,6}}; printf("%d", sizeof(testarray)); Assuming a short is two bytes long, what will be printed by the above code?
6
7
12
24
E. It will not compile because not enough initializers are given
Q.9.
"My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above.
printf("My salary was increased by 15/%!");
printf("My salary was increased by 15%!");
printf("My salary was increased by 15'%'!");
printf("My salary was increased by 15%%!");
Q.10.
What is the difference between a declaration and a definition of a variable?
Both can occur multiple times, but a declaration must occur first.
A definition occurs once, but a declaration may occur many times.
Both can occur multiple times, but a definition must occur first.
A declaration occurs once, but a definition may occur many times.
E. There is no difference between them.
Support mcqgeeks.com by disabling your adblocker.
Please disable the adBlock and continue. Thank you.