A compiler compiles the source code_______
1.complete program in one stroke.
2. one line at a time.
3. two lines at a time.
4.complete programs in two strokes.
A declaration float a, b; occupies ___ of memory. .
1. 1 Byte.
2.4 Bytes.
3.8 Bytes.
4. 16 Bytes.
An interpreter reads the source code of a program__
1. One line at a time.
2.Two lines at a time.
3.complete program in one stroke
4.complete program in two strokes.
ANSI committee was setup in the summer of___________.
1.1983
2.1985
3.1990
4.1976
C language has been developed at_________.
1.AT & T Bell labs, USA.
2. IBM, USA
3.Borland International, USA
4.Sun Microsystems
How many keywords are there in ANSI C?
1.32.
2. 33.
3. 42.
4.15.
In C every variable has_______.
1.a type.
2.a name.
3.a value
4.a size.
In C one statement can declare_________.
1.only one variable.
2.Two variables
3.Ten variables.
4.any number of variables.
The C program is converted to machine language using________.
1.An assembler.
2.A compiler
3.An interpreter.
4.An operating system.
The keyword volatile keeps the value of variable__________.
1.constant.
2.mutable
3.variant
4.different
What is the value of 10%8?
1.8.
2. 2.
3. 1.
4.0.
A character variable can store only___________.
1.1 character.
2.20 characters.
3.254 characters
4.265 characters.
A short integer variable occupies memory_________.
1.2 bytes.
2. 4 bytes.
3.1 bytes.
4.8 bytes.
According to __________ C keywords are reserved words.
1.a compiler.
2.an interpreter.
3.header file.
4.an interpreter and header file.
Addition of two numbers is performed using _________.
1.arithmetic operator.
2. logical operator.
3. unary operator.
4.comma operator.
An escape sequence commences with _____________.
1. .
2. /.
3. ?.
4.#.
An unsigned integer variable contains values________.
1. greater or equal to zero.
2.less than zero.
3.only zeros.
4.(1) & (2) both.
C variable cannot start with_________.
1.a number
2.an alphabet.
3.a character
4.a string.
Each instruction in C program is terminated by__________.
1.dot (.).
2.Comma (,).
3.Semi-colon (;)
4.curly brace ({}).
he extension for C program files by default is_________.
1. .c
2..d
3.obj
4.exe
How many variables can be initialized at a time?
1.one
2.two.
3.Five
4.any number of variables
Identify the wrong statement.
1.putchar(65).
2.putchar(‘x’).
3.putchar(“x”).
4. putchar(‘ ‘).
The & operator displays________.
1.address of the variable.
2. value of the variable
3. result of the variable
4.both (a) & (b).
The C language is an offspring of ______
1.B language.
2.ALGOL language
3.BASIC language
4.ARITHMETIC language
The C language is closely associated with _________.
1.MS-DOS.
2.Linux.
3.Unix.
4.MS-Windows.
The C program is highly case sensitive
1.false
2.true
3.both (A) and (B)
4.none of the above
The C supports _____ basic data types
1.8
2.2
3.10
4.4
The C was developed in the year____
1.1972.
2.1960
3.1975
4.1971
The declaration of C variable can be done____
1.anywhere in the program.
2. in declaration part.
3. in executable part.
4. at the end of the program.
The execution of a C program start from _____.
1.function
2.Header file
3.main()
4.Processor
The keyword const keeps the value of a variable_________.
1.constant
2.mutable
3.variant
4.different
The keyword const keeps the value of a variable_________.
1.constant
2.mutable
3.variant
4.different
The programs should be written only in_______
1.lower case.
2.upper case
3.title case
4.sentence case.
The range of character data type is_________.
1. -128 to 127.
2. 0 to 255.
3.0 to 32767
4.126 to 275.
The role of a compiler is to translate source program statements to_________.
1. object codes
2.octal codes
3.decimal codes.
4.binary codes
The variable name can be started with__________. A.
1.underscore symbol (_).
2.asterisk symbol(*).
3.ampersand symbol(&)
4.minus symbol(-).
The variables are initialized using_________.
1.greater than(>).
2.equal to (=).
3. twice equal to(==).
4.an increment operator(++).
The word char is a_______
1.keyword.
2.password
3.header file.
4.statement
What is the ASCII range for 0 to 9 digits?
1. 48 to 57.
2. 65 to 90
3.97 to 122.
4.86 to 93.
What is the result of 5&&2?
1.0.
2. 1.
3.2.
4.5.
What is the result of 5/2?
1. 4.
2. 8.
3.2.
4. 5.
What is the result of the expression (10/3)*3+5%3?
1.11.
2.10.
3. 8.
4.1.
What is the result of the expression (23*2) % (int) 5.5?
1.2.
2.1.
3.3.
4. 0.
What is the value of sizeof(char)?
1.1.
2.0.
3.-1.
4.-2.
Which function is appropriate for accepting a string?
1.gets().
2.getch().
3.getche().
4.scanf().
Which is the incorrect variable name__________.
1.else.
2.name
3.age
4.char
Which of the following declaration is not supported by C?
1.String str;.
2.char *str;.
3.float str = 3e2;.
4.Both String str; & float str = 3e2;.
Which of the following statement is valid?
1. 5+5=a
2. ss=12.25;
3.st=m * b;
4.is = A+ 10;
______ decides which operator is to be used first.
1.Hierarchy
2.Priority
3.ladder
4.Precedence
__________ refers to the accuracy of the calculations.
1. Integrity.
2.Clartiy
3.Simplicity
4.Modularity