40 questions
int main()
{
int a = 10, b = 25;
a = b++ + a++;
b = ++b + ++a;
printf("%d %d n", a, b);
}
36 64
35 62
36 63
30 28
int main ()
{
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
Who is Father of C Language
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
C Language is developed at ___________?
AT & T's Bell Laboratories of USA in 1972
AT & T's Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
C programs are converted into machine language with the help of
An Editor
A compiler
An operating system
None of these.
Which is the only function all C programs must contain?
start()
system()
printf()
main()
Which of the following is not a correct variable type?
float
real
int
char
int main ()
{
int x = 24, y = 39, z = 45;
z = x + y;
y = z - y;
x = z - y;
printf ("%d %d %d", x, y, z);
}
24 39 63
39 24 63
24 39 45
39 24 45
The process of removing a bug is known as
Debugging
Compilation
Executing
Running
Every C Program Statement must be terminated with a
.
#
;
!
Which of the following is the boolean operator for logical-AND?
&
&&
|
||
All keywords in C are in ____________
Lowercase
Uppercase
Camelcase
None of these
Which of the following is not a valid variable name declaration?
int a3;
int 3a;
int _A3;
int a_3
The functions printf() and scanf() are defined in which of the following library file:-
math.h
conio.h
stdio.h
stdlib.h
Which is variable declaration?
int a,b;
c=a+b;
printf("%d%d",a,b)
scanf("%d%d",&a,&b);
Process of writing the C source code is called as ___________________
Editing
LInking
Executing
C programming consists of two section which are _________________ and ___________________
Pre-processor directives ; Main function
Pre-processor directives ; end statement
statements ; Main function
While assigning a value to a variable, which operators are used to perform arithmetic operations?
Logical operator
Assignment operator
Increment operator
Conditional opertor
An Integrated Development Environment typically consists of:
A text editor
A compiler
A debugger
All of these
Computer programs are also known as:
Hardware
Firmware
Software
Silverware
What is the extension of C program source code?
.cpp
.py
.c
.java
What is machine language?
A language used by car
Machine language is made of 1's and 0's
Machine language is made of 7's and 8's
A language that only understands plain English
Which line of code is correct for the statement:
Add 1 variable to x.
x++;
x+1
x+x
Choose a correct C Statement.
a++ is (a=a+1) POST INCREMENT Operator
a-- is (a=a-1) POST DECREMENT Operator
--a is (a=a-1) PRE DECREMENT Operator
++a is (a=a+1) PRE INCREMENT Operator
All the above.
The value 132.54 can be represented using which data type?
double
void
int
bool
Which of the following is the boolean operator for logical-OR?
&
&&
|
||
Which of the following is the boolean operator for logical-NOT?
&
&&
!
||
What does <= mean?
less than
greater than
less than or equal to
greater than or equal to
what data type store whole numbers?
Float
Character
Logical
Integer
Which of the function is more appropriate for reading a multi-word string?
puts()
printf()
scanf()
gets()
How does strings are declared?
1. String name;
Char name [20];
Char name{20};
None of the above
The process of creating a new variable without value.
declaration
naming
instantiation
assigning