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.
Id_No
ID_NO
IdNo
Id No
What is the output of the following code?
int a = 5;printf("%d", a == 5);
0
1
5
Undefined
&
&&
||
!
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
-5
+5
scanf()
getch()
getche()
gets()
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
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
Constants
Keywords
Operators
Tokens
What will be the output of the following code?
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.
char > int > float
int > char > float
char < int < double
double > char > int
Personal Hyper Pretext
Pretext Hypertext Processor
Hypertext Preprocessor
Preprocessor Home Page
Easier to maintain and update
Greater consistency in design
More formatting options.
All of the above
-4
-2.8
+2.8
+3
Notepad
Notepad++
Adobe Dreamweaver
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.
Algorithm
Flow-Charts
Procedural
Object Oriented
2
4
Depends on the system
.html
.xml
.php
.ph
8
final
constant
const
static
An Editor
A compiler
An operating system
None of these
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
Apache
IIS
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
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
no of students
char
7th
myName
“programming Trick”
“programming"
‘programming'
$ programming $
2 bytes
4 bytes
8 bytes
1 byte
getchar()
cin.get()
Compiler
Interpreter
Assembler
None of These
2.5
2.000000
2.500000
Structural
Presentational
Markup
Behavioral
Input data
The program does not require any function.
Output data
The program must have at least one function.
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
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
void
endl
float
switch
CSS
jQuery
JavaScript
PHP
auto
case
main
default
<
=
>=
<=
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
| |
int
double
Easier to maintain and update.
Greater consistency in design.
immutable
mutable
volatile
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.
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
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
Creating Style Sheets
Cascading Style Sheets
Computer Style Sheets
Colorful Style Sheets