int number;
float rate;
int variable_count;
int $main;
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..
function(int ptr);
function(int *ptr);
function(*ptr);
function(ptr *int);
How many times will the following loop execute?
int j;for(j = 1; j <= 10; j = j-1)printf("INFOMAX");
Forever
Never
0
10
ceil(1.66)
floor(1.66)
roundup(1.66)
roundto(1.66)
Using malloc() without free()
Using calloc() without realloc()
Using pointers incorrectly
None of the above
getchar()
gets()
scanf()
cin.get()
Read
Write
Execute
Copy
arr[2]
arr(2)
arr[3]
arr[1]
What is the final value of x when the code is executed?
int x; for(x=0; x<10; x++) {}
9
1
An array of characters
The object of some class
Same as other primitive data type
Linkedlist of characters
int
float
include
char
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
A
B
ADA
C++
1return
return1
return
$return_1
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
*
+
++
&&
2
3
4
Input data
The program does not require any function.
Output data
The program must have at least one function.
compare two numeric values
combine two numeric values
compare two boolean values
30
32
36
40
An Editor
A compiler
An operating system
pair of parenthesis
semicolon
braces
colon
volatile
true
friend
export
no of students
7th
myName
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
auto
case
main
default
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
1020
10+20
Compiler error
Infinitely
Variable
world
addition23
test-name
factorial
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
print()
input()
All of the above
LowerCase letters
UpperCase letters
CamelCase letters
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
5
0.5
15
double
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
&
||
!
switch
goto
go back
2 bytes
4 bytes
8 bytes
1 byte
"r"
"w"
"rw"
"read"
To determine which operator evaluated first from left to right.
To determine the level of an operator in a program.
To determine how an expression involving more than one operator is evaluated.
To check the expression is valid or not.
-1
static
new
What will be the output of following program?
int main() { for(int c=1;c<5;++c); printf(“%d”,c); }
6
12345
int arr[10][10];
int arr[10,10];
array int arr[10][10];
int arr{10}{10};
Depends on the system
Martin Richards
Ken Thompson
Herman Hellorith
20
None