LowerCase letters
UpperCase letters
CamelCase letters
None of these
2 bytes
4 bytes
8 bytes
1 byte
float
double
long double
far double
4
8
16
1
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 num;
integer num;
num int;
num integer;
volatile
true
friend
export
Compiler
Interpreter
Assembler
None of These
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
real
int
no of students
char
7th
myName
//
/
#
/*
An Editor
A compiler
An operating system
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.
Input data
The program does not require any function.
Output data
The program must have at least one function.
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
5
2
0.5
15
immutable
mutable
const
What will be output if you compile and execute the following ‘C’ code?
void main(){int i=4,x;x=++i + ++i + ++i;printf("%d",x);}
21
18
19
Compilation error
world
addition23
test-name
factorial
Decimal
Binary
Octal
Hexadecimal
print()
scanf()
input()
All of the above
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
Algorithm
Flow-Charts
Procedural
Object Oriented
Spaces
Digits
Underscores
Letters
-4
-2.8
+2.8
+3
Either True or False
is less than or is more than
is equal or less or more
Constants
Keywords
Operators
Tokens
char > int > float
int > char > float
char < int < double
double > char > int
final
constant
static
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
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
What will be the output of the following code?
int x = 5;printf("%d", ++x);
6
7
Depends on the system
A
B
ADA
C++
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.
void
endl
switch
auto
case
main
default
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
int number;
float rate;
int variable_count;
int $main;
-5
0
+5
32
36
40
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
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
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
None of the above
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
10
20
None
Binary operator
Unary operator
Ternary operator
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