In a computer keyboard the Alt, Ctrl, Shift, Del & Insert keys are known as
A.Standard keys
B.Function keys
C.Navigation keys
D.Special purpose keys
D.Special purpose keys
Which data type is most suitable for storing a number 65000 in a 32-bit system?
A. short
Output of an arithmetic expression with integers and real numbers is ___ by default?
a) Integer
b) Real number
c) Depends on the numbers used in the expression
d) None of the above
Answer: B
#include <stdio.h>
int main() {
int x = 1, y = 2;
printf("%d", x, y);
return 0; }
A. 1
B. 2
C. Compilation Error
D. Garbage Value
Ans : A
Choose a C Conditional Operator from the list.
A) ?:
B) :?
C) :<
D) <:
A:A)
Which of the following is a User-defined data type?
D. All of the mentioned
What is the value of a?
int a = 10 + 4.867;
a) a = 10
b) a = 14.867
c) a = 14
d) compiler error
Answer: C
#include <stdio.h>
int main()
{ char str[25];
printf(" %d ",printf("c-letsfind"));
return 0; }
A. 10 c-letsfind
B. 9 c-letsfind
C. c-letsfind 9
D. c-letsfind 10
Ans : D
Explanation: Inner printf() will print first and then outer printf will display the length of the inner printf's string.
Choose a syntax for C Ternary Operator from the list.
A) condition ? expression1 : expression2
B) condition : expression1 ? expression2
C) condition ? expression1 < expression2
D) condition < expression1 ? expression2
Answer: A
Which of the following cannot be a variable name in C?
A. TRUE
B. friend
C. export
D. volatile
Ans : D
Can you use C Modulo Division operator % with float and int?
a) Only int variables
b) Only float variables
c) int or float combination
d) Numerator int variable, Denominator any variable
Answer: A
What error will be generated on using incorrect specifier for the datatype being read?
a) compile error
b) run-time error
c) logical error
d) no error
Answer: b
Explanation: Using an incorrect specifier for the datatype being read will generate a run-time error.
Which is the alternative to SWITCH in C language?
a) If
b) Else
c) If-Else
d) All of these
Answer:- d) All of these
We can implement a SWITCH statement using IF, ELSE, and ELSE IF control statements.
2. A combined unit of ALU and CU ✔
What is short int in C programming?
Answer: Option C
What is the other name of Question Mark Colon Operator?
a) Comparison Operator
b) If-Else Operator
c) Binary Operator
d) Ternary Operator
Answer: D
scanf returns as its value
a.Number of successfully matched and assigned input items
b.Nothing
c.Number of characters properly printed
d.Error
A:Number of successfully matched and assigned input items
In the SWITCH-CASE statement the default case must be used?
a) TRUE
b) FALSE
Answer:- b) FALSE
The use of default case in the SWITCH-CASE statement is optional.
A computer’s type, processor, and operating system define its
a) brand
b) size
c) platform
d) speed
e) none of these
Answer: (d)
1. How many keywords are there in c ?
A. 31
B. 32
C. 64
D. 63
Ans : B
In C programming language, which of the following type of operators have the highest precedence
a) Relational Operators
b) Equality Operators
c) Logical Operators
d) Arithmetic Operators
Answer: D
For floating point numbers, the precision flag specifies the number of decimal places to be printed. When no precision modifier is specified, printf() prints _______
a) six decimal positions
b) five decimal positions
c) four decimal positions
d) three decimal positions
Answer: a
Explanation: Its format can be given as “. m”, where m specifies the number of decimal digits when no precision modifier is specified, printf prints six decimal positions.
What is the maximum number of ELSE-IF statements that can be present in between starting IF and ending ELSE statements?
a) 32
b) 64
c) 128
d) None
r Answer:- d) None