Constants
Keywords
Operators
Tokens
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
4
5
6
Undefined
1
-1
0
2
immutable
mutable
const
volatile
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
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
*
+
++
&&
Input data
The program does not require any function.
Output data
The program must have at least one function.
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
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
infomax
info_max
info max
All of these
Easier to maintain and update
Greater consistency in design
More formatting options.
All of the above
8
16
What is the output of the following code?
main(){ int a, b; a=b=4; b=a++; printf("%d %d %d %d", a++, --b, ++a, b--);}
5 3 7 3
Syntax error
5 4 5 3
6 2 6 4
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
Easier to maintain and update.
Greater consistency in design.
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
Style sheets allow content to be optimized for more than one type of device.
CSS can store web applications locally With the help of an offline cache
Using CSS, we can view online website. In cache also ensures faster loading and better overall performance of the website.
All of the above.
scanf()
getch()
getche()
gets()
world
addition23
test-name
factorial
Spaces
Digits
Underscores
Letters
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
char
int
float
double
System programming language
General purpose language
Data processing language
None of the above
-4
-2.8
+2.8
+3
Notepad
Notepad++
Adobe Dreamweaver
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
Depends on the system
3
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
A
B
ADA
C++
2 bytes
4 bytes
8 bytes
1 byte
1return
return1
return
$return_1
Logical Operator
Conditional Operator
typecast
Ternary
CSS
jQuery
JavaScript
PHP
Apache
IIS
start()
printf()
main()
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
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
signed short
unsigned short
long
long double
far double
Algorithm
Flow-Charts
Procedural
Object Oriented
&
||
!
LowerCase letters
UpperCase letters
CamelCase letters
An Editor
A compiler
An operating system
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