Home / SSC(ENG) - GSEB Board / Reading Mode

πŸ“– Reading Mode: SSC(ENG) - GSEB Board

Chapter: data Types, Operators and Expression in C Language β€’ Total: 119 MCQs

MCQ 1 ALL

If 12 is stored in date identifier then what would be its data type?

A character
B real
C integer
D none of these
MCQ 2 ALL

If 99.50 is stored in amount identifier then what would be its data type?

A character
B real
C integer
D none of these
MCQ 3 ALL

The keywords associate a data with its types are known as ...........

A variable
B data type
C keyword
D token
MCQ 4 ALL

The type of value to be stored in identifier is known as .........

A variable
B data type
C keyword
D token
MCQ 5 ALL

Keywords to relate data with its value identify ........... things

A 2
B 3
C 4
D 5
MCQ 6 ALL

................ is defined by the keyword that relate data with its value.

A the type of value stored in
B the memory space required by
C Both (a) and (b)
D None of these
MCQ 7 ALL

Each data type is allocated a fixed memory space in C and it is denoted ............

A bytes
B constant
C variable
D None of these
MCQ 8 ALL

1 byte = ....... bits

A 8
B 7
C 6
D 5
MCQ 9 ALL

Which are the basic or primitive data types in c language?

A integer, decimal, character
B void
C Both (a) and (b)
D None of these
MCQ 10 ALL

Integer, decimal and character are represented by ..................___

A integer, decimal, char
B int, dec, char
C int, float, char
D None of these
MCQ 11 ALL

What is the syntax of data type?

A Identifier1 data type;
B data type identifier1;
C Option (a) or (b)
D None of these
MCQ 12 ALL

A/an ................. is a positive or negative whole number with no fractional part in it .

A Char
B Real
C Integer
D Void
MCQ 13 ALL

....... keyword is used to make use of only positive values

A Signed int
B Positive int
C Unsigned int
D None of the given
MCQ 14 ALL

........ are capable of storing both positive as well as negative values .

A Signed int
B Positive int
C Unsigned int
D None of the given
MCQ 15 ALL

Which of the following keywords refer to integer data type?

A int
B INTEGER
C Integer
D integer
MCQ 16 ALL

Which of the following refers to size of memory to int as per gcc compiler? Or What is a memory spaced used by integer in C language?

A 4
B 8
C 12
D 16
MCQ 17 ALL

Signed int data type has a range of ......

A -32767 to +32768
B 0 to 2147483647
C 0 to 4294967295
D -2147483648 to +2147483647
MCQ 18 ALL

Unsigned int data type has a range of ......

A -32767 to +32768
B 0 to 2147483647
C 0 to 4294967295
D -2147483648 to +2147483647
MCQ 19 ALL

In C, ......... Keyword is used along with int to increase the range of integer numbers higher than +214756347.

A long
B float
C double
D unsigned
MCQ 20 ALL

........ data type stores values having fractional part in it.

A Int
B Float
C FLOAT
D float
MCQ 21 ALL

What is a memory spaced used by float in C language?

A 4 bytes
B 8 bytes
C 16 bytes
D 32 bytes
MCQ 22 ALL

What is a memory spaced used by double in C language?

A 4 bytes
B 8 bytes
C 16 bytes
D 32 bytes
MCQ 23 ALL

...... values are precise to 6 and at times 7 decimal digits.

A double
B long double
C float
D All of the given
MCQ 24 ALL

....... data type are precise to 16 decimal digits, i.e., after the decimal points.

A float
B long float
C short float
D double
MCQ 25 ALL

In increase range of double numbers ..... is used as prefix to double.

A unsigned
B wide
C long
D twice
MCQ 26 ALL

Which of the following data types occupies 16 bytes memory space?

A Long double
B Float
C Double
D All of the given
MCQ 27 ALL

Which data type is used to define higher precision value in real numbers?

A float
B double
C Long
D None of these
MCQ 28 ALL

The scientific format of 95.50 could be represented as ............

A 95.5
B 95.5
C 95.5
D All of the given
MCQ 29 ALL

Scientific value 0.9550e2 represents ......

A Mantissa
B Exponent
C Both (a) and (b)
D None of these
MCQ 30 ALL

........ represents mantissa and ........ represents exponent in 0.9550e2

A 2, 0.9550
B 0.9550, 2
C 0.9550, e
D All of these
MCQ 31 ALL

...... indicates the part of memory for float numbers

A Exponent
B Mantissa
C Sign
D All of these
MCQ 32 ALL

Mantissa part represents ........ series of Numbers.

A 0 to 18
B 0 to 22
C 23 to 30
D 0 to 31
MCQ 33 ALL

Exponent part represents ..... series of numbers.

A 0 to 18
B 0 to 22
C 23 to 30
D 0 to 31
MCQ 34 ALL

Sign part represents ........ series of numbers.

A 0
B 23
C 22
D 31
MCQ 35 ALL

Which of the following is a valid keyword in C that identifies valid character value?

A CHAR
B CHARACTER
C char
D Character
MCQ 36 ALL

Keyword char occupies ..... byte of memory space.

A 4
B 3
C 2
D 1
MCQ 37 ALL

Each character is associated with an integer value called....

A ASCII (American Standard Code for Information Interchange)
B ANSI (American National Standard Institute)
C UNICODE Character
D None of these
MCQ 38 ALL

β€˜a’, β€˜2’, β€˜#’ are example of ..............

A number
B special symbol
C Character
D string
MCQ 39 ALL

What is the range of char?

A 0 to 255
B 0 to 256
C -256 to +255
D -128 to +127
MCQ 40 ALL

The unsigned char has a range of ....

A 0 to 255
B 0 to 256
C -256 to +255
D -128 to +127
MCQ 41 ALL

C provides a special data type identified by keyword ............. that has no value and is mainly used as a return type of functions

A Container
B Blank
C Null
D Void
MCQ 42 ALL

If we want to say the function would not return any values then.... is used.

A Container
B Blank
C Null
D void
MCQ 43 ALL

........ statement tells the compiler to exit from the function body.

A exit
B quit
C end
D return 0
MCQ 44 ALL

Which of the following is correct syntax of assigning value to the variable?

A variable datatype = value;
B datatype variable = value;
C value = data type variable
D value = variable
MCQ 45 ALL

.............. allows user to create a new data type by making use of existing data type.

A Basic or primitive data type
B Derived data type
C User defined data type
D None of these
MCQ 46 ALL

Which two keywords are used to generate user defined data type?

A int and char
B float and double
C typedef and enum
D None of these
MCQ 47 ALL

What is full name of typedef ?

A Type defence
B Type definition
C Type define
D Type deferent
MCQ 48 ALL

How can you define variable using typedef?

A datatype typedef variable;
B typedef datatype variable;
C typedef variable datatype;
D datatype variable typedef;
MCQ 49 ALL

.............. allows us to give an alias to an existing data type.

A enum
B typedef
C char
D float
MCQ 50 ALL

Enumerated data type can be created in C by using keyword ……….

A enumerated
B enum
C enam
D None of these
MCQ 51 ALL

If enum money{rupee, dollar, pound, yen}; enum money currency=dollar; then what is the value of currency?

A 0
B 1
C 2
D 3
MCQ 52 ALL

If enum money{rupee=10, dollar=50, pound=75, yen=100}; enum money currency=dollar; then what is the value of currency?

A 10
B 50
C 75
D 100
MCQ 53 ALL

......... is/are an example of derived data type.

A array, structure
B union, pointers
C Both (a) and (b)
D None of these
MCQ 54 ALL

The data structure called ........ consists of group of variables having same property.

A array
B union
C structure
D pointers
MCQ 55 ALL

Which of the following is the correct syntax to define an array?

A Datatype constant [size];
B Datatype keyword [size];
C Datatype variable [size];
D Datatype identifier [size];
MCQ 56 ALL

Which of the following is correct syntax for Array to declare as nm with size 10 that store group of 10 characters as its elements?

A char[11] nm;
B char[10] nm;
C char nm [11];
D char nm [10];
MCQ 57 ALL

The statement subject[]=β€œC language” defined the array variable subject with length....

A 10
B 11
C 21
D 12
MCQ 58 ALL

The data on which the operation is performed using a operator is known as ........

A Operator
B Operands
C Expression
D Program
MCQ 59 ALL

How many operators available in C language?

A 5
B 6
C 7
D 8
MCQ 60 ALL

Which are the different arithmetic operators available in C language?

A +, -, *, / %
B >,<, !=
C &&. ||
D None of these
MCQ 61 ALL

Which of the following is not an arithmetic operator in C language?

A Multiplication
B Division
C Subtract
D Exponential
MCQ 62 ALL

....... is the modulo operator.

A $
B @
C %
D #
MCQ 63 ALL

Modulo operator is used to get a ..................

A Division
B Modular
C Remainder
D quotient
MCQ 64 ALL

Modulo operator cannot be used with.....

A Integer
B Float
C Both a) and b)
D None of these
MCQ 65 ALL

Based on the operand used in the expression, the arithmetic can be categorized as .......

A Real arithmetic
B Integer arithmetic
C Mixed mode
D All of these
MCQ 66 ALL

If the values used in the expression are positive or negative whole numbers then it is considered as....

A Real arithmetic
B Integer arithmetic
C Mix mode
D All of these
MCQ 67 ALL

The result of integer arithmetic is always ..........

A Integer
B Real
C Mixed
D None of the given
MCQ 68 ALL

If all the operands used in an expression are float the expression is called ....

A Real arithmetic
B Integer arithmetic
C Mixed mode arithmetic
D All of these
MCQ 69 ALL

........ use integer as well as float operands within an expression.

A Real expression
B Original expression
C Mixed mode expression
D Varied expression
MCQ 70 ALL

The Expression like result= 25.75 *5 is known as.....

A Real expression
B Original expression
C Mixed mode expression
D Varied expression
MCQ 71 ALL

The = is used for which of the following operations in C ?

A Assignment
B Comment
C Equality check
D Formula
MCQ 72 ALL

Result of integer/integer (5/10) expression is always.......

A 0.5
B 0
C Option A) or b)
D Cant say
MCQ 73 ALL

Result of float/float (5/10) expression is always.......

A 0.5
B 0
C Option (a) or (b)
D Cant say
MCQ 74 ALL

84. Which of the following is the correct syntax of assignment operator?

A variable op = constant value;
B variable op = expression;
C Option (a) or (b)
D None of these
MCQ 75 ALL

The assignment operator is used a .............. to a variable.

A Constant value
B Result of an expression
C Option (a) or (b)
D None of these
MCQ 76 ALL

Which shorthand operator available in C language?

A Arithmetic
B Assignment
C Comparison
D Logical
MCQ 77 ALL

The statement a+= 3 is equivalent to ..........

A a=1+3
B a=+3
C a=a+3
D None of these
MCQ 78 ALL

....... is used to compare two similar types of operands.

A Logical operators
B Conditional operators
C Relational operators
D Bitwise operators
MCQ 79 ALL

.............. is used to change the flow of execution of the program.

A Conditional operators
B Logical operators
C Relational operators
D Bitwise operators
MCQ 80 ALL

How many relational operators are there for comparison?

A 3
B 4
C 5
D 6
MCQ 81 ALL

Which of the following are relational operators?

A >, <
B >=, <=
C ==, !=
D All of these
MCQ 82 ALL

....... is used to check the equality of operands.

A =
B ==
C =!
D ! =
MCQ 83 ALL

. ........ Is used to check the non-equality of operands.

A !
B = !
C ! =
D !!
MCQ 84 ALL

Operator working with the single operand is known as ......

A Arithmetic operator
B Logical operator
C Relational operator
D Unary operator
MCQ 85 ALL

Which are the two special unary operators available in C?

A + and -
B ++ and --
C & and |
D && and ||
MCQ 86 ALL

Which of the following refer to the meaning of value β€˜variable++’ in C ?

A Post-increment
B Post- decrement
C Pre- increment
D Pre- decrement
MCQ 87 ALL

Which of the following refer to the meaning of value β€˜ - - variable’ in C ?

A Post-increment
B Post- decrement
C Pre- increment
D Pre- decrement
MCQ 88 ALL

When ++ or --is prefix to a variable, then it is known as .....increment/decrement?

A pre
B post
C Option (a) or (b)
D None of these
MCQ 89 ALL

When ++ or --is suffix to a variable, then it is known as …...increment/decrement?

A pre
B post
C Option (a) or (b)
D None of these
MCQ 90 ALL

What will be the output of int a=6, b=5; a=a+ b++?

A 10
B 11
C 12
D None of the given
MCQ 91 ALL

What will be the output of int a=6, b=5; a=a + ++b ?

A 10
B 11
C 12
D None of the given
MCQ 92 ALL

Conditional operator also known as .............. operator.

A unary
B binary
C ternary
D None of the given
MCQ 93 ALL

Which are two ternary or conditional operators available in C?

A : and ;
B ? and ;
C ? and :
D None of the given
MCQ 94 ALL

....... is the syntax of conditional operator

A (condition)?(false statement ) : ( true statement );
B (condition) ? (true statement ) : ( false statement) ;
C ( condition): ( true statement ) ? ( false statement );
D (condition): (false statement ) ? ( true statement );
MCQ 95 ALL

How many types of logical operators are there used to combine multiple conditions?

A 1
B 2
C 3
D 4
MCQ 96 ALL

Which logical operator is used when all the given conditions must be satisfied?

A And (&&)
B OR (||)
C NOT (!)
D None of these
MCQ 97 ALL

Which logical operator is used any one of the given conditions must be satisfied?

A And (&&)
B OR (||)
C NOT (!)
D None of these
MCQ 98 ALL

Logical expression gives an output values either …… or …….

A True or false
B Yes or not
C 0 or 1
D None of these
MCQ 99 ALL

Logical expression 0 refers to …… and 1 refers to …….

A True , false
B False, true
C 0 or 1
D None of these
MCQ 100 ALL

...... operator returns 1 only if both expressions returns 1.

A AND
B NOT
C OR
D All of the these
MCQ 101 ALL

C allows us to operate directly at bit level using ................ operators

A Bitwise
B Logical
C Arithmetic
D Relational
MCQ 102 ALL

The symbol & belong to .................... and the symbol ! belong to ......... operator types in the C .

A Both Bitwise
B Both Logical
C Bitwise, logical
D Logical ,bitwise
MCQ 103 ALL

To perform bitwise AND (&), OR (!), XOR (^ Exclusive OR), left shift (<<) and right shift(>>) require ……… operands.

A one
B two
C three
D four
MCQ 104 ALL

To perform bitwise NOT (~) requires ………… operand.

A one
B two
C three
D four
MCQ 105 ALL

Which are the different special operators available in C?

A sizeof( ) , ”,” (comma) , β€œ.” (dot) ,
B β€œοƒ β€
C ”&” (ampersand) , ” * ” (asterisk)
D All of these
MCQ 106 ALL

The ..... operator is used to return size of bytes required to store an entity

A sizeof < >
B sizeof {}
C sizeof( )
D Ofsize( )
MCQ 107 ALL

What will be the output of sizeof(int) ?

A 2
B 4
C 8
D 16
MCQ 108 ALL

What will be the output of sizeof(double) ?

A 2
B 4
C 8
D 16
MCQ 109 ALL

Which expression would be evaluated first in the statement β€œ first + second * third –fourth ”?

A first + second
B second * third
C third - fourth
D Any of these
MCQ 110 ALL

Which expression would be evaluated first in the statement β€œ first + second * (third –fourth) ”?

A first + second
B second * third
C third - fourth
D Any of these
MCQ 111 ALL

How many storage classes are provides by C language?

A 2 (external, internal)
B 3 (Physically, logically, mentally)
C 4 (automatic, external, register and static)
D None of these
MCQ 112 ALL

……. allows users to specify the location where he/she wants to store the variable

A Internal classes
B External classes
C Physical classes
D Storage classes
MCQ 113 ALL

All the variables by default have storage class as ……...

A Auto
B Extern
C Static
D Register
MCQ 114 ALL

…… variables are created automatically when the function is called and destroyed when the function returns the control back to the calling function

A Auto
B Extern
C Static
D Register
MCQ 115 ALL

In ……, variable is assigned zero value by default.

A Auto
B External
C Static
D Both (b) and (c)
MCQ 116 ALL

In ……, variable is assigned a garbage value by default

A Auto
B External
C Register
D Both (a) and (c)
MCQ 117 ALL

In …… , variable is stored in the primary memory.

A Auto
B External
C Static
D All of these
MCQ 118 ALL

Which of the following storage class is used to store the variable in the CPU registers?

A Auto
B External
C Static
D Register
MCQ 119 ALL

Storage class …….. is use to share variables between 2 different functions or programs

A Auto
B External
C Static
D register