1. The Default Parameter Passing Mechanism is called as
-
call by value
call by reference
call by address
2. What is Dequeue?
-
elements can be added from front
elements can be added to or removed from either the front or rear
elements can be added from rear
3. A variable can have -
-
r-value only,
l-value only,
r-value and address,
4. Which bitwise operator is suitable for checking whether a particular bit is on or off?
-
&& operator
& operator
|| operator
5. Suppose that i is an integer variable whose value is 7 and f is the floating-point variable whose value is 8.5. Evaluate the following expression : ( i + f)%4
6. Which of the following is not a storage class supported by C++
-
register
auto
mutable
7. In which order do the relational (i) arithmetic (2) logical (3) assignment (4) gets evaluated?
-
2134
1234
4321
8. What will be output if you will compile and execute the following c code?
#include “string.h”
void main(){
clrscr();
printf(“%d %d”,sizeof(“string”),strlen(“string”));
getch();
}
9.C was developed in the year ___
10. Which of the following is the correct order of evaluation for the below. expression? z = x+y*z/4%2-1
-
*/%+-=
=*/%+
/*%-+=
11. What will be output if you will compile and execute the following c code?
void main(){
static main;
int x;
x=call(main);
clrscr();
printf(“%d “,x);
getch();
}
int call(int address){
address++;
return address;
}
Garbage value
12. C is a ___ language
-
High Level
Low Level
Middle Level
13. C language is available for which of the following Operating Systems?
-
DOS
Windows
Unix
14. Which of the following correctly shows the hierarchy of arithmetic operations in C ?
-
/+*
*-/+
+-/*
15. What is the control character for “a floating point number”.
-
%c
%d
%i
16. For 16-bit compiler allowable range for integer constants is ______ ?
-
-3.4e38 to 3.4e38
-32767 to 32768
-32768 to 32767
17. Which of the following is the correct usage of conditional operators used in C ?
-
a>b? c=30:c=40
a>b? c= 30;
max=a> b? a>c? a:c:b>c?b:c
18. What is Dequeue?
-
Elements can be added from front
Elements can be added to or removed from either the front or rear
Elements can be added from rear
19. High level language is a .?
-
Human readable like language.
language with small program size.
language with big program size.
20. Is the following statement a declaration or definition? extern int i;
-
Declaration
Definition
Function
21. Which program outputs "Hello World.." .?
main()
{
scanf("Hello World..");
}
main()
{
printf("Hello World..");
}
main()
{
print("Hello World..");
}
22. Which of the following function is more appropriate for reading in a multi-word string?
23. The statement p r I n t f (‘’ % d’’, 10?0?5 : 11: 12); prints
24. The && and || operators compare two
25. By default a variable is assigned with__________in static storage class
26. C programs are converted into machine language with the help of
27. A C variable cannot start with
28. A. Constant
29. In a passage of text individual words and punctuation marks are called
30. The output of the following program segment will be:
void main()
{
int x-4, y=3, z;
z=x---y;
printf("\n%d%d%d",x,y,z);
}
Post a Comment
0 Comments