Compiler
Interpreter
Assembler
None of These
stdio.h
conio.h
stdlib.h
None of these
System programming language
General purpose language
Data processing language
None of the above
When the following piece of code is executed, what happens?
b = 3;a = b++;
a contains 3 and b contains 4
a contains 4 and b contains 4
a contains 4 and b contains 3
a contains 3 and b contains 3
void
endl
float
switch
pair of parenthesis
semicolon
braces
colon
What will be output if you compile and execute the following ‘C’ code?
void main(){int i=4,x;x=++i + ++i + ++i;printf("%d",x);}
21
18
19
Compilation error
To exit the function and return control to the calling function
To pause the function temporarily
To call the function again
To exit the program
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.
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
2
4
1
Depends on the system
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
is executed only once if the condition is true.
is also known as entry-controlled loop.
is executed at least once if the condition is false.
is unconditional looping statement..
&&
| |
!
All of the above
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
2 bytes
4 bytes
8 bytes
1 byte
10
20
0
None
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
-1
&
||
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
do-while
if-else
for
while
auto
case
main
default
getchar()
gets()
scanf()
cin.get()
no of students
char
7th
myName
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
//
/
#
/*
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
Call by reference
Call by value
Call by reference by passing base address to a function
Both A and C
strlen()
sizeof()
length()
strlength()
In the following nested conditional statements, which branch will execute?
int x = 4;if (x > 2) { if (x < 5) { printf("x is between 2 and 5"); }} else { printf("x is 2 or less");}
x is between 2 and 5
x is 2 or less
Error
No output
It is used to define global variables
It is used to define a macro
It is used to include standard or user-defined header files in the program
It is used to include comments in the code
Logical Operator
Conditional Operator
typecast
Ternary
It breaks out of both loops.
It only breaks out of the innermost loop.
It causes a compile-time error.
It stops the program.
Nested structure
Recursive structure
Union structure
Inline structure
put together the file and functions that are required by the program
translate the instructions into a form suitable for execution by the program
load the executable code into the memory and execute them
allow the user to type the program
_infomax
3infomax
infomax_ica
infomax123
goto
go back
return
Read
Write
Execute
Copy
int x = 5;printf("%d", ++x);
5
6
7
break
exit(0)
abort()
All of the mentioned
It returns the size of the variable in bits
It returns the size of the variable in bytes
It returns the size of the variable in kilobytes
It returns the number of elements in an array
Return
GOTO
Switch
exit
“programming Trick”
“programming"
‘programming'
$ programming $
real
int
double
int number;
float rate;
int variable_count;
int $main;
float, double
short int, double, long int
float, double, long double
double, long int, float
What will be the output of the following program?
int main() { int x=5; printf(“%d %d %d”,x,x<<2,x>>2); }
1 20 5
5 1 20
5 20 1
20 1 5
world
addition23
test-name
factorial
"r"
"w"
"rw"
"read"