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()
scanf()
input()
All of the above
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
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
1
0
+5
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
Either True or False
is less than or is more than
is equal or less or more
Keywords can be used as variable names
Variable names can contain digits
Variable names do not contain blank spaces
Capital letters can be used in variable names.
Apply styles for the web page
Define structure of the web page
Provide meaning to the sections of the web page
None of the above
2
3
4
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
getchar()
gets()
cin.get()
Compiler
Interpreter
Assembler
None of These
An Editor
A compiler
An operating system
None of these
Constants
Keywords
Operators
Tokens
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
LowerCase letters
UpperCase letters
CamelCase letters
Bjarne Stroustrup
James A. Gosling
Dr. E.F. Codd
CSS
jQuery
JavaScript
PHP
A
B
ADA
C++
getch()
getche()
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
Algorithm
Flow-Charts
Procedural
Object Oriented
Creating Style Sheets
Cascading Style Sheets
Computer Style Sheets
Colorful Style Sheets
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
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 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
2 bytes
4 bytes
8 bytes
1 byte
8
it Compare the variable a and the variable b are same.
The value of b is assigned to variable a but if b changes later, it will not effect the value of variable a.
The value of b is assigned to variable a but if b changes later, it will effect the value of variable a.
The value of variable a is assigned to variable b, and the value of variable b is assigned to variable a.
Adobe Dreamweaver
Apache
IIS
Binary operator
Unary operator
Ternary operator
< php >
< ? php ?>
?>
Easier to maintain and update.
Greater consistency in design.
More formatting options.
//
/
#
/*
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
Depends on the system
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
5
0.5
15
System programming language
General purpose language
Data processing language
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
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
int num;
integer num;
num int;
num integer;
int main(){int x,y,z;x='1'-'0'; /* line-1 */y='a'-'b'; /* line-2 */z=x+y;printf("%d",z);}
Error because of incorrect line-1 only.
Error because of incorrect line-1 and line-2.
Error because of incorrect line-2 only.
&&
| |
!
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
Logical Operator
Conditional Operator
typecast
Ternary
*
&
%
int x = 5;printf("%d", ++x);
6
7