Statically typed language
Dynamically typed language
Both Statically and dynamically typed language
Type-less language
D. Type-less language
void main()
{
static int a = 1, b, c;
if (a>=2) b=2; c=3;
printf("%d\t%d", b,c);
}
2 3
0 3
0 0
2 0
An array is a collection of variables that are of the dissimilar data type.
An array is a collection of variables that are of the same data type.
An array is not a collection of variables that are of the same data type.
None of the above.
4
7
6
0
True
False
An Editor
A compiler
An operating system
None of the above
string.h
strings.h
text.h
strcmp.h
True
False
main()
{
int a = 0;
for (; i = 0; i++)
printf("%d", a);
}
0
Nothing will be displayed
Infinite loop
None of the above
void main()
{
char a = 'B';
switch (a)
{
case 'A' : printf("a");
case 'B' : printf("b");
default : printf("c");
}
B
b
bca
bc
True
False
int f(int a, int b);
void main()
{
int a = 12, b=154;
printf("%d", f(a, b));
}
int f(int a, int b)
{
if (a<b) return(f(b, a));
if(b==0) return(a);
return (f(b, a % b));
}
2
1
Compilation error
Runtime error
True
False
True
False
int ~Country()
void Country()
int ~Country(Country obj)
void ~Country()
True
False
do-while
if-else
goto
for
/ + *
* / +
+ / *
* / + -
True
False
True
False
Dennis Ritchie
Ken Thompson
Bill Gates
Peter Norton
Statically typed language
Dynamically typed language
Both Statically and dynamically typed language
Type-less language
x + y' is a keyword
3 and 20 are constants
3z is a constant
y is a variable and z is a constant
True
False
True
False
3.4e38 to 3.4e38
32767 to 32768
32768 to 32767
32668 to 32667
4
2
8
10
True
False
#include
int main(){
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr);
return 0;
}
1
64
320
Compiler Error
The smallest individual units of c program
The basic element recognized by the compiler
The largest individual units of program
A & B Both
35
45
55
40