"r"
"w"
"rw"
"read"
signed short
unsigned short
long
int
is executed only once if the conditions is true
is also known as entry-controlled loop
is executed at least once if the conditions is false
the unconditional loop
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
Adjective
Adverbs
Noun
Verb
Moves the file pointer to a specific location
Reads a file
Writes to a file
Closes a file
world
addition23
test-name
factorial
Nominative form
Comparative form
Superlative form
Positive form
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
for (int i = 0; i < 10; i++)
for i = 0 to 10 step 1
for (i = 0; i < 10; i++)
for (i < 10; i++)
infomax
info_max
info max
All of these
_infomax
3infomax
infomax_ica
infomax123
exit
break
continue
return
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
An array of characters
The object of some class
Same as other primitive data type
Linkedlist of characters
break stops the loop, continue skips the rest of the iteration
Both stop the loop
break skips to the next iteration, continue exits the loop
Both skip to the next iteration
throws
throw
threw
thrown
What is the output of the following code?
int arr[5] = {1, 2, 3, 4, 5};printf("%d", arr[3]);
1
2
3
4
Consider the following code and How many bytes of memory will be allocated?
int *ptr = (int *)malloc(10 * sizeof(int));
10 bytes
20 bytes
80 bytes
40 bytes
Find the output of following code :
int main() { int i=-2; printf (“-i=%d”,-i); return b; }
–i=2
i=-2
–i=-2
–i=+2
What is the final value of x when the code is executed?
int x; for(x=0; x<10; x++) {}
10
9
0
Simple Inheritance
Hybrid Inheritance
Multiple Inheritances
Hierarchical Inheritance
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
function(int ptr);
function(int *ptr);
function(*ptr);
function(ptr *int);
8
What will be the output of the following code?
int x = 5;printf("%d", ++x);
5
6
7
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
conio.h
string.h
math.h
graphic.h
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..
Return
GOTO
Switch
Undefined
for (i=1; i < 20; i++) printf ("k");
for (i=1; i = 20; i++) printf ("k");
for (i=0; i < 20; i++) printf ("k");
for (i=0; i <= 20; i++) printf ("k");
stdio.h
stdlib.h
How many times will the following loop execute?
int j;for(j = 1; j <= 10; j = j-1)printf("INFOMAX");
Forever
Never
-1
Call by reference
Call by value
Call by reference by passing base address to a function
Both A and C
power of y to the x
power of x to the y
logarithm of x on the base y
Such function does not exist
Value of elements in array
First element of the array
Base address of the array
Address of the last element of array
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
A
B
ADA
C++
volatile
true
friend
export
calloc()
malloc()
allocate
New
static
new
pair of parenthesis
semicolon
braces
colon
Input data
The program does not require any function.
Output data
The program must have at least one function.
What will be output if you will compile and execute the following c code?
int main(){ int a=5; float b; printf("%d",sizeof(++a+b)); printf(" %d",a); return 0;}
2 6
4 6
2 5
4 5
*
+
++
&&
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
Nested structure
Recursive structure
Union structure
Inline structure
What will be the output of the following pseudo code ?
Integer aSet a =4do print a + 2 a = a-1while (a not equals 0)end while
6 6 6 6
6 5 4 3
6 7 8 9
6 8 10 12