fclose()
closefile()
fileclose()
endfile()
Because it was raining
The dog barked
While I was sleeping
Since she is tired
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.
Compiler
Interpreter
Assembler
None of These
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
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
int num;
integer num;
num int;
num integer;
across
over
under
from
What is the output of the following code?
int x = 5;if (x > 3) { printf("Greater than 3"); } else { printf("Not greater than 3"); }
Greater than 3
Not Greater than 3
Error
No Output
Decimal
Binary
Octal
Hexadecimal
Deriving a base class from derived class
Deriving a derived class from base class
Deriving a derived class from more than one base class
None of the mentioned
What will be the output of the following code?
int x = 5;printf("%d", ++x);
4
5
6
7
break
exit(0)
abort()
All of the mentioned
Undefined
double
float
char
array
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
start()
printf()
main()
getch()
LowerCase letters
UpperCase letters
CamelCase letters
None of these
*
&
%
#
Either True or False
is less than or is more than
is equal or less or more
All of the above
Value of elements in array
First element of the array
Base address of the array
Address of the last element of array
no of students
7th
myName
1
2
8
final
constant
const
static
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
They played games at the picnic.
He takes his dog on a walk.
She watched a movie with her friend.
The sun is shining brightly
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
What is the output of the following code:
int x = 5;
printf("%d", x++);
auto
case
main
default
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
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
3
2.5
2.000000
2.500000
ceil(1.66)
floor(1.66)
roundup(1.66)
roundto(1.66)
Depends on the system
Moves the file pointer to a specific location
Reads a file
Writes to a file
Closes a file
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
throws
throw
threw
thrown
int func();
func() int;
function int func();
declare int func();
int a = 5, b = 10;if (a < b)printf("a is less than b");elseprintf("a is greater than or equal to b");
a is greater than or equal to b
a is less than b
Compiler Error
function(int ptr);
function(int *ptr);
function(*ptr);
function(ptr *int);
world
addition23
test-name
factorial
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
char str[] = "Hello";
char str = "Hello";
string str = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
What will be the output of the following code segment?
int x = 24, y = 39, z = 45;z = x + y;y = z - y;x = z - y;printf("\n%d %d %d", x, y, z);
24 39 63
39 24 63
24 39 45
39 24 45
Call by reference
Call by value
Call by reference by passing base address to a function
Both A and C
int arr[5] = {1, 2, 3, 4, 5};printf("%d", arr[3]);
int main(){int x,y,z;x='1'-'0'; /* line-1 */y='a'-'b'; /* line-2 */z=x+y;printf("%d",z);}
0
Error because of incorrect line-1 only.
Error because of incorrect line-1 and line-2.
Error because of incorrect line-2 only.
int
include