print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
int num;
integer num;
num int;
num integer;
4
5
6
Undefined
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
infomax
info_max
info max
All of these
“programming Trick”
“programming"
‘programming'
$ programming $
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
getchar()
gets()
scanf()
cin.get()
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
float
include
char
2 bytes
4 bytes
8 bytes
1 byte
Binary operator
Unary operator
Ternary operator
All of the above
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
final
constant
const
static
*
+
++
&&
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
30
32
36
40
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
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
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 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
immutable
mutable
volatile
What is the output of the following code:
int x = 5;
printf("%d", x++);
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
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
//
/
#
/*
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
compare two numeric values
combine two numeric values
compare two boolean values
None of the above
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
2
0.5
15
A number
A special symbol other than underscore
Both of the above
An alphabet
signed short
unsigned short
long
Input data
The program does not require any function.
Output data
The program must have at least one function.
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
Constants
Keywords
Operators
Tokens
double
array
getch()
getche()
Either True or False
is less than or is more than
is equal or less or more
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
1020
10+20
Compiler error
System programming language
General purpose language
Data processing language
no of students
7th
myName
Decimal
Binary
Octal
Hexadecimal
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
1
3
start()
printf()
main()
Algorithm
Flow-Charts
Procedural
Object Oriented
real
Depends on the system
8
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