Q1) The data type which is used to store Numaric data without decimal point
- char
- int
- float
- deuble
Answer:int
Explanation:The data type which is used to store numeric data without decimal point is called an "integer".
Q2) Number of bytes used by long double data type is:
- 4
- 10
- 8
- 12
Answer:8
Explanation:In general, a long double is a floating-point data type that is typically larger than a double (which is usually 8 bytes on most platforms). On some platforms, a long double may be twice the size of a double, which would make it 16 bytes.
Q3) The number of digits after a decimal point is called:
- Significance
- Range
- Scope
- Preciston
Answer:Preciston
Explanation:The number of digits after a decimal point is typically referred to as the "precision" or the "decimal precision".
Q4) The set of values and a set of operations on those values are known as:
- Database
- Data Science
- Data Files
- Data Type
Answer:Data Type
Explanation:The set of values and a set of operations on those values are known as a "data type".
Q5)int is a_______in C.
- Key word
- Cut ward
- First word
- Special word
Answer:Key word
Explanation:Key word
Q6) Memory is allocated to a local variable at the time of its:
- Declaration
- Relational operator
- Conditional operator
- Relational operator
Answer:Declaration
Explanation:Declaration
Q7) The value of logical operator OR will be if: :
- A=0 & B=1
- A=1 & B 1
- A=1 & B=0
- All of these
Answer:All of these
Explanation:All of these
Q8) Logical operators are:
- AND
- NOT
- OR
- All
Answer:All
Explanation:All
Q9) The Operators to compare operands and decide if the relation is true or false:
- Syntax Operators
- Arithmetic operators
- Relational Operators
- Logical Operators
Answer:Relational Operators
Explanation:Relational operators are used in programming languages to compare two values and determine the relationship between them. The result of a relational operator is a Boolean value (either true or false), indicating whether the comparison is true or false.
Q10) The Modulus Operator is used for:
- Remainder
- Division
- Multiply
- Exponent
Answer:Reminder
Explanation:The modulus operator is a mathematical operator represented by the symbol "%", and it is used in programming languages to determine the remainder of a division operation. Specifically, when two numbers are divided using the modulus operator, the result is the remainder of the division operation.
Q11) The expression 0% 4 has a value equal to:
- 4
- 2
- 1
- 0
Answer:0
Explanation:The expression 0%4 has a value of 0. In this case, we are dividing 0 by 4, which means there is no integer that can be subtracted from 0 in order to get a result less than 4. Therefore, the remainder is 0, and the result of the expression is 0.
Q12) Another name for Keyword is:
- Reserved Word
- Comments
- Special word
- identifier
Answer:Reserved Word
Explanation:In programming, a keyword is a special word that has a specific meaning and is reserved by the language for use in specific contexts. Keywords cannot be used as variable names, function names, or any other identifiers in the program, because they are already reserved by the language for a particular purpose.
Q13) A variable name cannot begin with:
- Underscore
- Upper Case
- Number
- Lower Case
Answer:Number
Explanation:Number
Q14) In C Language, the maximum length of variable name is:
- 25 characters
- 255 characters
- 31 charecters
- 55 characters
Answer: 31 characters
Explanation: The C standard recommends that an implementation should support at least 31 characters in a variable name.
Q15) A memory location with some data that Can be changed is called:
- Constant
- Name Constant
- Variable
- Address
Answer:Variable
Explanation:A memory location with some data that can be changed is called a variable. In programming, a variable is a named location in memory where data can be stored and retrieved.
Q16) Find the output of the following expression 10* (24/(5-2))+13:
- 96
- 80
- 90
- 93
Answer:93
Explanation:The output of the following expression 10*(24/(5-2))+13 can be calculated using the order of operations, also known as the PEMDAS rule (Parentheses, Exponents, Multiplication and Division, and Addition and Subtraction):
Q17) An identifier whose value can be change during the execution of the program is called:
- Token
- String
- Constant
- Variable
Answer:Variable
Explanation:An identifier whose value can be changed during the execution of the program is called a variable.
Q18) Variables are created in:
- USB
- Hard Disk
- ROM
- RAM
Answer:RAM
Explanation:RAM
Q19) Total number of keywords in C are:
- 32
- 36
- 34
- 30
Answer:32
Explanation:The total number of keywords in C programming language is 32. These keywords have special meanings and are reserved for use by the language itself. Here is the list of all C keywords:
auto, break, case, char, const, continue, default, do, double, else, enum, extern, float, for, goto, if, int, long, register, return, short, signed, sizeof, static, struct, switch, typedef, union, unsigned, void, volatile, while.
Q20) Variable and constant name cannot contains a
- Letter
- Underscore
- Period
- Number
Answer:Period
Explanation:Variable names cannot contain spaces Or Period.
Q21) Which term describes the kind of values that a variable can store?
- Variable name
- Data type
- Variable type
- Variable size
Answer:Data type
Explanation:The term that describes the kind of values that a variable can store is data type. In programming, a data type is an attribute of a variable that specifies the type of data that the variable can hold.
Q22) Which of the following is a valid character constant?
- A
- '@'
- "C"
- "="
Answer: '@'
Explanation:A character constant is a value that represents a single character, enclosed in single quotes (' ').
Q23) Which is a valid character constant?
- A
- "Hello"
- Ms
- '8'
Answer:'8'
Explanation:'8'
Q24) The number of bytes used by int data type in C is:
- 2
- 4
- 6
- 8
Answer:4
Explanation:The number of bytes used by the int data type in C programming language is implementation-defined, which means it can vary depending on the compiler being used and the system architecture.
Q25) The number of bytes in unsigned integer data type consumes is:
- 8
- 4
- H2
- 2
Answer:4
Explanation:The most common unsigned integer data type in C is unsigned int, which typically occupies 4 bytes (32 bits) of memory on modern systems. This means that it can represent integer values ranging from 0 to 4,294,967,295.
Q26) Which is a numeric data types?
- Floating point
- Integer
- Both
- None of these
Answer:Both
Explanation:Both
Q27) How many bytes the float data type takes in memory?
- 8
- 3
- 2
- 4
Answer:4
Explanation:In C programming language, the float data type is typically represented using 4 bytes (32 bits) of memory on most modern systems.
Q28) Which is numeric data type with decimal points?
- float
- int
- char
- long
Answer:float
Explanation:The numeric data type with decimal points in C programming language is called a floating-point data type.
Q29) Which data type is the most appropriate for storing a name?
- Float
- Int
- char
- Long
Answer:char
Explanation:char
Q30) The expression 3% 5 has a value equal to: . 3
- 1
- 2
Answer:3
Explanation:In this case, since 3 is less than 5, the result of the operation will be simply the value of the first operand, which is 3. Therefore, the value of the expression 3 % 5 is 3.
Q31) The expression 14% 3 has a value equal to:
- 2
- 4
- 4.66
- 11
Answer:2
Explanation:In this case, 14 divided by 3 gives a quotient of 4 with a remainder of 2. Therefore, the value of the expression 14 % 3 is 2.
Q32) The expression p -= q is equivalent to:
- p = p - q
- p = q-p
- p=q-I
- p-p-q
Answer: p = p - q
Explanation:"p -= q", is a expression in C language and it is equivalent to "p = p - q".
Q33) The expression M += N is equivalent to:
- N=N+ M
- N+=M
- M=+N
- M=M+N
Answer:M=M+N
Explanation:The expression "M += N" is a compound assignment operator in many programming languages, including C, Java, and Python. It is equivalent to the expression "M = M + N", which means to add the value of N to the value of M, and assign the result back to M.
Q34) The symbols that perform operations on data are called:
- Operand
- Syntax
- Operators
- Operation code
Answer:Operators
Explanation:Operators are symbols or keywords that perform operations on data in programming. They can manipulate data in various ways, such as performing mathematical calculations or testing conditions.
Q35) An expression consists of:
- Operands
- Both A & C
- Operators
- None
Answer:Oprands
Explanation:Expressions perform specific actions, based on an operator, with one or two operands
Q36) Relational operators allow you to ____________ values.
- Divide
- Compare
- Add
- Multiply
Answer:Compare
Explanation:Relational operators are a type of operator in programming languages that allow you to compare values. They are used to test the relationship between two values and determine if they are equal, not equal, greater than, less than, greater than or equal to, or less than or equal to each other.
Q37) The following is not relational operator?
- <=
- ==
- !
- !=
Answer:!
Explanation:The exclamation mark (!) is not a relational operator in the C programming language. It is a logical operator used to perform a logical NOT operation on a value, which means it reverses the logical state of its operand.
Q38) When a relational expression is false it has the value
- True
- One
- Zero
- Less Than Zero
Answer:Zero
Explanation:When a relational expression is false, it has the value 0 in most programming languages, including C.
Q39) An expression that uses a relational operator is known as:
- Sequential
- Operational
- Serial
- Relational
Answer:Relational
Explanation:An expression that uses a relational operator is known as a relational expression.
Q40) _________ Operators are used to make a compound condition.
- Logical
- Arthimetic
- Bitwise
- Relational
Answer:Logical
Explanation:Logical operators are used to make a compound condition in programming.
Q41) Which of the following is not logical operator?
- &
- !l
- i> =
Answer:&
Explanation:The ampersand symbol "&" is not a logical operator in C. It is a bitwise operator that performs a bitwise AND operation on the binary representation of two values.
Q42) Which logical operator is used in C?
- ||
- &&
- +
- _
Answer:&&
Explanation:|| is a Logical OR operator. ! is a NOT operator. So, '&' is not a Logical operator.
Q43) All of the following are logical operator OR will be 1 if.
- NOT
- "="
- AND
- OR
Answer:=
Explanation:=
Q44) "A=A+B" is equivalent to:
- A=A+B
- B=+A
- B+=A
- A += B
Answer:A += B
Explanation:In most programming languages, the expression "A = A + B" is equivalent to "A += B".
Q45) The symbol of "=" represents:
- Comparison
- AN Assignment
- Equal to
- Logical
Answer: An Assignment
Explanation:An assignment is a statement in a programming language that assigns a value to a variable.
Q46) Single Line Comments start with:
- 56
- //
- */
- \\
Answer://
Explanation:In most programming languages, including C, C++, Java, and Python, single line comments start with two forward slashes "//".
Q47) This means to increase a value by one:
- Modulus
- Increment
- Decrement
- None of these
Answer:Increment
Explanation:The increment operator is a unary operator in programming that is used to increase the value of a variable by 1.
Q48) A type of operator that works with one opperand is called:
- Binary operator
- Uniary operator
- Ternary operator
- Relational operator
Answer:Uniary operator
Explanation:A unary operator is an operator in programming that operates on a single operand, or variable.
Q49) Which of the following is equivalent to ( P > = q)?
- P < q
- !(p < q)
- !(p > q)
- !p == q
Answer: !(p < q)
Explanation: !(p < q)
Q50) Which operator has lowest precedence?
- !
- -
- +
- =
Answer:=
Explanation:=
Q51) The logical NOT operator denoted by "!" it is a?
- Ternary operator
- Binary operator
- Uniary operator
- Bitwise operator
Answer: Uniary operator
Explanation:Unary operators are operators that operate on a single operand, meaning they only require one operand to perform the operation. In the case of the logical NOT operator, it requires only one operand, which is the expression or value that needs to be negated.
Q52) The only binary operator in the following is:
- ?
- ++
- +
- ??
Answer:+
Explanation:In C language, there are several binary operators that work with two operands. Here is a list of the most commonly used binary operators in C:
Q53) a+=b is equivatent to: .
- b+=a a=+b
- b=bt+a
- a = a + b
- b = b+ a
Answer: a = a + b
Explanation: a = a + b
Q54) The value of C expression 5/9 * 2 are:
- 1.11
- 0.27
- 0
- 2
Answer: 0
Explanation: So, "5/9" evaluates to 0. Multiplying 0 by 2 will always result in 0, so the final result of the expression "5/9 * 2" is 0.
Q55) Which of the following statement is true for “A = 25 and B=35:
- A+B
- A>==B
- A! = B
- A==B
Answer: A != B
Explanation: A != B
Q56) If x = 2 and y = 3; what will be the output of the expression: x > y? x+y: x * y.
- 5
- 6
- 12
- 10
Answer:6
Explanation:The output of the expression will be 6. Becouse 2 is not greater than 3, the else statement will be executed, and the value of x times y (2 * 3) will be returned, which is 6. Therefore, the output of the expression "x > y ? x + y : x * y" when x = 2 and y = 3 is 6.
Q57) Select an operator with the highest precedence?
- +
- !
- =
- ==
Answer:
Explanation:In C, the postfix increment and decrement operators (++ and --) have the highest precedence among all the operators.
Q58) Which of the following data type offers the highest precision?
- Float
- int
- Long
- Long Double
Answer:Long Double
Explanation:In C, the long double data type offers the highest precision among all the numeric data types. It typically occupies 80 bits of memory and can represent numbers with a range of approximately 3.4 × 10^-4932 to 1.1 × 10^4932 with a precision of at least 18 decimal digits.
Q59) Which of the following is a valid Logical Operator
- >=
- ||
- >!
- &!
Answer:||
Explanation:||
Q60) The result of C expression 9/ 4 *2 will be equal to:
- 4.0
- 5
- 4.5
- 4
Answer:4
Explanation:The result of the C expression "9 / 4 * 2" will be 4. In C, integer division truncates any remainder, which means that any fractional part of the result is discarded.
0 Comments