print()
scanf()
input()
All of the above
Either True or False
is less than or is more than
is equal or less or more
2
4
1
Depends on the system
char str[] = "Hello";
char str = "Hello";
string str = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
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
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.
<
=
>=
<=
5
6
Undefined
Call by reference
Call by value
Call by reference by passing base address to a function
Both A and C
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
-4
-2.8
+2.8
+3
It exits the current loop and continues with the next iteration
It terminates the current loop and transfers control to the next statement after the loop
It skips the current iteration and moves to the next iteration
It repeats the current iteration
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 can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(like goto, static)
Variable names cannot start with a digit
Variable can be of any length
-5
0
+5
char > int > float
int > char > float
char < int < double
double > char > int
stdio.h
conio.h
stdlib.h
None of these
float, double
short int, double, long int
float, double, long double
double, long int, float
Moves the file pointer to a specific location
Reads a file
Writes to a file
Closes a file
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
Id_No
ID_NO
IdNo
Id No
signed short
unsigned short
long
int
*
&
%
#
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
infomax
info_max
info max
All of these
float
include
char
They execute programs faster than compilers
They translate the entire program at once
They translate and execute code line by line
They are not used in modern programming
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
Logical Operator
Conditional Operator
typecast
Ternary
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
function(int ptr);
function(int *ptr);
function(*ptr);
function(ptr *int);
Binary operator
Unary operator
Ternary operator
break
continue
return
exit
void
endl
switch
int func();
func() int;
function int func();
declare int func();
no of students
7th
myName
compare two numeric values
combine two numeric values
compare two boolean values
None of the above
“programming Trick”
“programming"
‘programming'
$ programming $
8
Algorithm
Flow-Charts
Procedural
Object Oriented
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
2 bytes
4 bytes
8 bytes
1 byte
world
addition23
test-name
factorial
What is the final value of x when the code is executed?
int x; for(x=0; x<10; x++) {}
10
9
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
final
constant
const
static
-1
Depends on array size
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