🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

MCQs on C Language

Ques 51

HPSSSB Ass Prog. 2018

निम्नलिखित में से कौन सा कथन 'C' भाषा के बारे में गलत है?

Which of the following statements is incorrect about ‘C’ language ?

[A] ‘C’ is a case insensitive language.

[B] A ‘C’ program must be compiled and linked before execution.

[C] ‘C’ supports the concept of pointers.

[D] ‘C’ is a high level language.

Correct Answer : ‘C’ is a case insensitive language.


Ques 52

COMPUTER OPERATOR 2022

जब हम C भाषा में किसी फ़ंक्शन के प्रोटोटाइप का उल्लेख करते हैं तो इसका क्या अर्थ होता है?

What does it mean when we mention prototype of a function in C language?

[A] Prototyping

[B] Calling

[C] Declaring

[D] Defining

Correct Answer : Declaring


Ques 53

Hp-High court 2024

"सी" भाषा में, स्थानीय चर __________फ़ंक्शन कॉल के बीच अपना मान बनाए रख सकते हैं।

In the "C" language , local variable __________can retain their value between function calls.

[A] Extern

[B] Register

[C] Static

[D] Auto

Correct Answer : Static


Ques 54

HPSSSB Computer Operator 2020

'सी' भाषा में मैक्रो को कैसे परिभाषित किया जाता है?

How is a macro defined in 'C' language ?

[A] Using a struct

[B] Using #define directive

[C] Using a function

[D] Using a union

Correct Answer : Using #define directive


Ques 55

HPSSSB Computer Operator 2020

'c' प्रोग्राम में निम्नलिखित अभिव्यक्ति द्वारा लौटाया गया मान क्या होगा? 5++;4

What will be the value returned by the following expression in a 'c' program ? 5++;4

[A] 5

[B] 6

[C] 7

[D] It is an invalid eexpression

Correct Answer : 5


Ques 56

HPSSSB Computer Operator 2020

'C' प्रोग्राम में निम्नलिखित अभिव्यक्ति द्वारा लौटाया गया मान क्या होगा?

What will be the value returned y the following expression in a 'C' program ?

5&4;

[A] 1

[B] 2

[C] 3

[D] 4

Correct Answer : 4


Ques 57

HPSSSB Computer Operator 2020

निम्नलिखित में से कौन सा अंकगणितीय ऑपरेटर पॉइंटर वेरिएबल के साथ उपयोग नहीं किया जा सकता है?

Which of the following arithmetic operator cannot be used with a pointer variable ?

[A] -

[B] *

[C] ++

[D] +

Correct Answer : *


Ques 58

HPSSSB Computer Operator 2020

'C' में निम्नलिखित में से किस अंकगणितीय ऑपरेटर को अपने ऑपरेंड में वैध मान की आवश्यकता होती है?

Which of the following arithmetic operator in 'c' requires a valid value s its operand ?

[A] *

[B] +

[C] ++

[D] %

Correct Answer : ++


Ques 59

HPSSSB Computer Operator 2020

'c' में एड्रेस ऑपरेटर के लिए सही प्रतीक क्या है?

What is the correct symbol for address operator in 'c'?

[A] *

[B] #

[C] ^

[D] &

Correct Answer : &


Ques 60

HPSSSB Computer Operator 2020

'C' में लॉजिकल OR ऑपरेटर के लिए निम्नलिखित में से कौन सा प्रतीक सही है?

Which of the following is the correct symbol for logical OR operator in 'C'?

[A] ~

[B] <<

[C] ||

[D] >>

Correct Answer : ||


Ques 61

HPSSSB Computer Operator 2020

'c' में बिटवाइज XOR ऑपरेटर के लिए निम्नलिखित में से कौन सा प्रतीक सही है?

Which of the following is the correct symbol for bitwise XOR operator in 'c'?

[A] ~

[B] <<

[C] |

[D] ^

Correct Answer : ^


Ques 62

HPSSSB Computer Operator 2020

निम्नलिखित में से कौन सा 'C' में एक स्वरूपित इनपुट फ़ंक्शन है?

Which of the following is a formatted input function in 'C'?

[A] getch()

[B] scanf()

[C] printif()

[D] getchar()

Correct Answer : scanf()


Ques 63

HPSSSB Computer Operator 2020

'c' में बिटवाइज XOR ऑपरेटर के लिए निम्नलिखित में से कौन सा प्रतीक सही है?

Which of the following is the correct symbol for bitwise XOR operator in 'c'?

[A] stlib.h

[B] stdio.h

[C] limits.h

[D] studio.h

Correct Answer : stdio.h


Ques 64

HPSSSB Computer Operator 2020

निम्नलिखित में से किस प्रकार की अभिव्यक्ति को "C" में स्विच .... केस स्टेटमेंट में स्विच अभिव्यक्ति के रूप में अनुमति नहीं है?

Which of the following types of expression is not allowed as Switch expression in switch .... case statement in "C"?

[A] char

[B] float

[C] enum

[D] int

Correct Answer : float


Ques 65

HPSSSB Computer Operator 2020

'C' प्रोग्राम में निम्नलिखित कथन द्वारा उत्पादित आउटपुट क्या होगा?

What will be the output produced by the following statement in 'C' program?

printf("%x",64);

[A] 40

[B] 64

[C] 80

[D] x

Correct Answer : 40


Ques 66

HPSSSB -2018

_____ एक गैर-रैखिक डेटा संरचना है जिसमें तत्वों को माता-पिता और बच्चों के पदानुक्रम में व्यवस्थित किया जाता है?

_____ is a non-linear data structure in which elements are organized in a hierarchy of parents and children ?

[A] Queue

[B] List

[C] Tree

[D] Dequeue

Correct Answer : Tree


Ques 67

HPSSSB -2018

निम्नलिखित में से कौन सा स्टोरेज मीडिया फ्लैश मेमोरी का उपयोग करता है?

Which of the following statements is incorrect about ‘C’ language ?

[A] ‘C’ is a case insensitive language.

[B] A ‘C’ program must be compiled and linked before execution.

[C] ‘C’ supports the concept of pointers.

[D] ‘C’ is a high level language.

Correct Answer : ‘C’ is a case insensitive language.


Ques 68

HPSSSB -2018

निम्नलिखित में से कौन सा सॉर्टिंग एल्गोरिदम पुनरावृत्ति का उपयोग करके आसानी से कार्यान्वित किया जा सकता है?

Which of the following sorting algorithms can be conveniently implemented using recursion ?

[A] Selection sort

[B] Bubble sort

[C] Insertion sort

[D] Merge sort

Correct Answer : Merge sort


Ques 69

HPSSSB -2018

‘C’ में array a = [1,7,4,2,3] को घोषित करने और परिभाषित करने का सही सिंटैक्स क्या है?

What is the right syntax of declaring and defining the array a = [1,7,4,2,3] in ‘C’ ?

[A] int a = [1,7,4,2,3];

[B] int a[] = {1,7,4,2,3};

[C] int a[] = 1,7,4,2,3;

[D] int a[]=[l,7,4,2,3];

Correct Answer : int a[]=[l,7,4,2,3];


Ques 70

HPSSSB -2018

निम्नलिखित में से कौन सा ‘C’ में लूपिंग नियंत्रण कथन नहीं है?

Which of the following is not a looping control statement in ‘C’ ?

[A] while

[B] for

[C] if … else

[D] do … while

Correct Answer : if … else


Ques 71

HPSSSB -2018

C भाषा की निम्नलिखित में से कौन सी विशेषता जावा में नहीं पाई जाती है?

Which of the following features of C language is not found in Java ?

[A] File Handling

[B] Arrays

[C] Pointers

[D] Functions

Correct Answer : Pointers


Ques 72

HPSSSB -2018

निम्नलिखित में से कौन सा C ऑपरेटर सशर्त ऑपरेटर के रूप में भी जाना जाता है?

Which of the following C operators is also known as the conditional operator ?

[A] >>

[B] –>

[C] ?:

[D] ++

Correct Answer : ?:


Ques 73

HPSSSB -2018

‘सी’ प्रोग्राम के निम्नलिखित खंड का आउटपुट क्या होगा?

What shall be the output of the following segment of a ‘C’ program ?

printf(“%x”,200);

[A] 0

[B] 310

[C] 200

[D] c8

Correct Answer : c8


Ques 74

HPSSSB -2018

सी भाषा में, स्थिरांक के वर्ण प्रकार को निम्न का उपयोग करके सीमांकित किया जाता है

In the C language, the character type of constant is delimited by using

[A] single quotes

[B] double quotes

[C] parenthesis

[D] None of these

Correct Answer : single quotes


Ques 75

HSSC-CET-2023

सी प्रोग्राम में स्ट्रीम क्या है?

What is a stream in C program ?

[A] A way of handling input /output operation in a program

[B] A type of loop used in decision making structures

[C] A type of function used to manipulate strings

[D] A type of data structure used to store varables

Correct Answer : A way of handling input /output operation in a program


Ques 76

HSSC-CET-2023

C प्रोग्राम में स्ट्रिंग संयोजन के लिए किस लाइब्रेरी फ़ंक्शन का उपयोग किया जाता है?

Which library function is used for string concatenation in C program ?

[A] strcpy()

[B] strlen()

[C] strrev()

[D] strcat()

Correct Answer : strcat()


Ques 77

DSSSB TGT -2023

निम्नलिखित में से कौन सी C प्रोग्रामिंग भाषा में रिलेशनल ऑपरेटर है?

Which of the following is a relational operator in the C programming language?

[A] &&

[B] !

[C] !=

[D] ||

Correct Answer : !=


Ques 78

DSSSB TGT -2021

C में कौन सा इनबिल्ट फ़ंक्शन सिस्टम कंसोल से स्ट्रिंग पढ़ने के लिए उपयोग किया जाता है?

Which inbuilt function in C is used to read string from system console?

[A] getchar ()

[B] getche ()

[C] puts ()

[D] cgets ()

Correct Answer : cgets ()


Ques 79

DSSSB TGT -2021

C में लिखे गए निम्नलिखित कोड का आउटपुट क्या है?

What is the output of the following code written in C?

void main()
{
printf("%d%d%d",62,062,0x62);
}

[A] 506298

[B] 629850

[C] 625098

[D] 986250

Correct Answer : 625098


Ques 80

DSSSB TGT -2021

यदि आकार ‘a’ और ‘b’ के दो गैर-निरंतर मुक्त विभाजन उपलब्ध हैं। आकार ‘c’ की एक प्रक्रिया तब भी आवंटित नहीं की जा सकती जब a + b > c, a < c और b < c हो। इस समस्या को ______ के रूप में जाना जाता है।

If two non-continuous free partition of size ‘a’ and ‘b’ are available. A process of size ‘c’ cannot be allocated even when a + b > c, a < c and b < c. This problem is known as ______.

[A] worst fit

[B] external fragmentation

[C] quick fit

[D] internal fragmentation

Correct Answer : external fragmentation


Ques 81

DSSSB TGT -2021

C में लिखे कोड का आउटपुट क्या है?

What is the output of the code written in C?

void main()
{
int k, val=1;
k= ++val*++val;
printf("%d",k);
}

[A] 4

[B] 1

[C] 9

[D] 16

Correct Answer : 9


Ques 82

DSSSB TGT -2021

सी भाषा में आरक्षित शब्द कौन सा है?

Which one is the reserved word in C language?

[A] integer

[B] Volatile

[C] Constant

[D] automatic

Correct Answer : Volatile


Ques 83

DSSSB TGT -2021

C भाषा में .exe फ़ाइल कब बनाई जाती है?

When is .exe file created in C language?

[A] after writing

[B] After chelation

[C] after loading all files

[D] After linking

Correct Answer : After linking


Ques 84

DSSSB TGT -2021

C में लिखे कोड का आउटपुट क्या है?

What is the output of code written in C?

void main()
{
int k, v;
k=(v=20,v+2);
printf("%d",k);
}

[A] 20

[B] 2

[C] 22

[D] error

Correct Answer : 22


Ques 85

DSSSB TGT -2021

निम्नलिखित C घोषणा पर विचार करें। मान लें कि शॉर्ट, फ्लोट और लो प्रकार के डेटा ऑब्जेक्ट क्रमशः 2 बाइट्स, 4 बाइट्स और 8 बाइट्स लेते हैं। चर t के लिए मेमोरी की आवश्यकता क्या है?

Consider the following C declaration. Assume that objects of data type short, float and lo occupy 2 bytes, 4 bytes and 8 bytes respectively. What is memory requirement for variable?

struct {
short a[5];
union{
float 
long z;}
u;
}t;

[A] 24 bytes

[B] 10 bytes

[C] 18 bytes

[D] 22 bytes

Correct Answer : 18 bytes


Ques 86

DSSSB TGT -2021

C में लिखे कोड का आउटपुट क्या है?

What is the output of the code written in C?

void main()
{
int k=8, v=8,i;
i=k/++v;
printf("%d\n",i);
}

[A] Error

[B] 1

[C] 0

[D] 0.8

Correct Answer : 0


Ques 87

DSSSB TGT -2021

निम्नलिखित में से कौन सी C प्रोग्रामिंग भाषा में रिलेशनल ऑपरेटर है?

Which of the following is relational operator in the C programming language ?

[A] &&

[B] !

[C] !=

[D] ||

Correct Answer : !=


Ques 88

DSSSB TGT -2023

C प्रोग्रामिंग भाषा में निम्नलिखित में से किस ऑपरेटर की प्राथमिकता सर्वोच्च है?

Which of the following operators has the highest precedence in the C programming language ?

[A] ^

[B] !=

[C] *

[D] ()

Correct Answer : ()


Ques 89

DSSSB TGT -2023

निम्नलिखित में से कौन सी C प्रोग्रामिंग भाषा में स्टोरेज क्लास नहीं है?

Which of the following is NOT a storage class in the C programming language ?

[A] Register

[B] Extern

[C] Auto

[D] Intern

Correct Answer : Intern


Ques 90

DSSSB TGT -2023

सी प्रोग्रामिंग भाषा में कतार डेटा संरचना के संदर्भ में निम्नलिखित में से कौन सा सत्य है? i सम्मिलन सामने के छोर से हो सकता है। ii विलोपन पीछे के छोर से हो सकता है,

Which of the following is true with reference to queue Data structure in the C programming language ? i Insertion can take place from the front end. ii Deletion can take place from the rear end ,

[A] Neither i nor ii

[B] Both i and ii

[C] Only i

[D] Only ii

Correct Answer : Neither i nor ii


Ques 91

DSSSB TGT -2023

C में, चर सूची तर्कों को मानक हेडर द्वारा दर्शाया जाता है:

In C , variable list arguments are denoted by the standard header:

[A] <unistd.h>

[B] <string.h>

[C] <stdio.h>

[D] <stdarg.h>

Correct Answer : <stdio.h>


Ques 92

DSSSB TGT -2023

सी टोकन क्या है?

What is C tokens?

[A] The largest individual unit of program

[B] The basic element recognised by the compiler

[C] The smallest individual unit of C program

[D] The smallest individual units of C program and the basic element recognized by the compiler both

Correct Answer : The smallest individual units of C program and the basic element recognized by the compiler both


Ques 93

DSSSB TGT -2023

सी प्रोग्रामिंग में डायनामिक ऐरे और स्टैटिक ऐरे के बीच मुख्य अंतर क्या है?

What is the main difference between a dynamic array and a static array in C programming ?

[A] Static array are stored in the stack , while dynamic arrays are stored in the heap .

[B] Dynamic array can be resized during runtime , while static arrays have a fixed size.

[C] Static arrays can be resided doing runtime , while dynamic arrays have a fixed size.

[D] Dynamic arrays are stored in the stack , while static arrays are stored in the heap

Correct Answer : Dynamic array can be resized during runtime , while static arrays have a fixed size.


Ques 94

Computer Operator-2018

निम्नलिखित में से कौन सा C कथन num[i] के स्थान पर भी इस्तेमाल किया जा सकता है? (i) *(num + i ) (ii) i[num] (iii) *(i+num)

Which of the following C statements can also be used in place of num[i]? (i) *(num + i ) (ii) i[num] (iii) *(i+num)

[A] Only (ii)

[B] (i), (ii) and (iii)

[C] Only (i)

[D] Only (iii)

Correct Answer : Only (i)


Ques 95

Computer Operator-2018

C प्रोग्रामिंग में निम्नलिखित में से कौन सा y का मान 5 पर सेट करेगा यदि x का मान 3 है, लेकिन अन्यथा नहीं?

Which one of the following in C programming will set the value of y to 5 if x has the value 3, but not otherwise?

[A] if (x = 3) y = 5

[B] if x ==3 (y = 5)

[C] if ( x ==3 y = 5

[D] if ( x ==3) y = 5

Correct Answer : if ( x ==3) y = 5


Ques 96

Computer Operator-2018

C प्रोग्रामिंग में ऑपरेटर '&' का प्रयोग किसके लिए किया जाता है?

In C programming the operator '&' is used to represent

[A] Logical AND

[B] bitwise AND

[C] logical OR

[D] bitwise OR

Correct Answer : bitwise AND


Ques 97

CCE(P) -2015

प्रोग्रामिंग भाषा C का उपयोग किया जाता है

The programming language C uses

[A] Row-major order

[B] Column major order

[C] Either a or b

[D] None of the above

Correct Answer : Row-major order


Ques 98

CCE(P) -2015

सी भाषा है

The C language is

[A] A context free language

[B] A context sensitive language

[C] regular language

[D] Passable fully only by a Turing

Correct Answer : A context free language


Ques 99

CCE(P) -2015

चर का दायरा संदर्भित करता है

The scope of variable refers to the

[A] Length of a variable

[B] Name of a variable

[C] Accessibility of a variable

[D] Data type of a variable

Correct Answer : Accessibility of a variable


Ques 100

CCE(P) -2015

सी भाषा पर विचार करते हुए विषम को खोजें?

Find the odd one considering C language?

[A] a=a+1;

[B] a+=1;

[C] a++;

[D] a++1;

Correct Answer : a++1;


Latest Updates