← प्रश्न-पत्र

TRE1 — सामान्य अध्ययन और कंप्यूटर विज्ञान

· सेट A

GS: हिन्दी / English · भाषा के प्रश्न मूल भाषा में रहेंगे।

प्रश्न-पत्र निर्देश

120 प्रश्न · 120 अंक · 2 घंटे

प्रत्येक गलत उत्तर पर 1/4 अंक की कटौती। हर प्रश्न में केवल एक विकल्प चुनें।

उत्तर जाँचने के लिए विकल्प पर टैप करें या “उत्तर देखें” खोलें।

पृष्ठ 3 / 3
← पिछला पृष्ठ
प्रश्न 101
Which sublayer of the data link layer performs data link functions that depend upon the type of medium?
उत्तर देखें

सही उत्तर: (B) Media access control sublayer
माध्यम के प्रकार पर निर्भर कार्य—जैसे पहुँच का नियंत्रण और फ्रेमिंग—माध्यम अभिगम नियंत्रण (MAC) उपस्तर करता है।

1 अंक · 2023 · सेट A
प्रश्न 102
Which one of the following is not a network topology?
उत्तर देखें

सही उत्तर: (A) Peer-to-peer
पीयर-टू-पीयर नेटवर्क का प्रकार है, संरचना (topology) नहीं; वलय और बस संरचनाएँ हैं।

1 अंक · 2023 · सेट A
प्रश्न 103
How do structures and classes in C++ differ?
उत्तर देखें

सही उत्तर: (D) More than one of the above
संरचना में सदस्य डिफ़ॉल्ट रूप से सार्वजनिक और वर्ग में निजी होते हैं, फिर भी संरचना में निजी सदस्य रखे जा सकते हैं—इसलिए एक से अधिक कथन सही हैं।

1 अंक · 2023 · सेट A
प्रश्न 104
When a mail server sends mail to other mail servers, it becomes
उत्तर देखें

सही उत्तर: (A) SMTP client
जब कोई मेल सर्वर दूसरे सर्वर को डाक भेजता है, तब वह SMTP क्लाइंट की भूमिका में आ जाता है।

1 अंक · 2023 · सेट A
प्रश्न 105
The length of an IPv6 address is
उत्तर देखें

सही उत्तर: (E) None of the above
IPv6 पता 128 बिट का होता है, जो दिए गए विकल्पों में नहीं है—इसलिए उत्तर 'इनमें से कोई नहीं' है।

1 अंक · 2023 · सेट A
प्रश्न 106
What is the use of ios::trunc mode?
उत्तर देखें

सही उत्तर: (C) To truncate an existing file to zero
ios::trunc से पहले से बनी फाइल की सामग्री मिटाकर उसकी लंबाई शून्य कर दी जाती है।

1 अंक · 2023 · सेट A
प्रश्न 107
Which layer of the TCP/IP stack corresponds to the OSI model transport layer?
उत्तर देखें

सही उत्तर: (A) Host-to-host
TCP/IP का होस्ट-टू-होस्ट स्तर OSI के परिवहन (transport) स्तर के समान है, जिसमें TCP और UDP आते हैं।

1 अंक · 2023 · सेट A
प्रश्न 108
Which of the following statements is/are correct? 1. It is not possible to combine two or more file opening modes in open(). 2. It is possible to combine two or more file opening modes in open(). 3. ios::in and ios::out are input and output file opening modes, respectively.
उत्तर देखें

सही उत्तर: (D) More than one of the above
open() में एक से अधिक मोड को | से जोड़ा जा सकता है और ios::in तथा ios::out निवेश-निर्गत के मोड हैं—इसलिए एक से अधिक कथन सही हैं।

1 अंक · 2023 · सेट A
प्रश्न 109
Which of the following is true with regard to the ping command?
उत्तर देखें

सही उत्तर: (C) Ping summarizes packet loss and round-trip delay between two IP endpoints.
ping पैकेट भेजकर उसकी वापसी का समय और खोए पैकेटों का हिसाब देता है; पोर्ट-स्तर की जाँच वह नहीं करता।

1 अंक · 2023 · सेट A
प्रश्न 110
The correct statement for a function that takes a pointer to a float, a pointer to a pointer to a char, and returns a pointer to a pointer to an integer is
उत्तर देखें

सही उत्तर: (C) int **fun(float *, char **)
फलन को float का संकेतक और char के संकेतक का संकेतक लेना है तथा int के संकेतक का संकेतक लौटाना है—इसलिए घोषणा int **fun(float *, char **) होगी।

1 अंक · 2023 · सेट A
प्रश्न 111
The private key in asymmetric key cryptography is kept by
उत्तर देखें

सही उत्तर: (B) Receiver
असममित कुंजी में सार्वजनिक कुंजी सबको दी जाती है, पर निजी कुंजी प्राप्तकर्ता अपने पास गुप्त रखता है।

1 अंक · 2023 · सेट A
प्रश्न 112
What will be the output of the following C++ code? #include<iostream> using namespace std; long factorial(long a) { if (a>1) return (a * factorial(a+1)); else return(1); } int main() { long num=3; cout<<num<<"!="<<factorial(num); return 0; }
उत्तर देखें

सही उत्तर: (C) Segmentation fault
यहाँ factorial(a+1) लिखा है, इसलिए आह्वान कभी नहीं रुकता और ढेर भर जाने पर खंडन दोष (segmentation fault) आता है।

1 अंक · 2023 · सेट A
प्रश्न 113
शुद्ध object-oriented programming भाषा बनने के लिए किसी प्रोग्रामिंग भाषा को निम्न में से किस विशेषता का समर्थन करना चाहिए?
उत्तर देखें

सही उत्तर: (D) More than one of the above
शुद्ध वस्तु-उन्मुख (object-oriented) भाषा के लिए संपुटन (encapsulation), वंशागति (inheritance) और बहुरूपता (polymorphism)—तीनों का समर्थन आवश्यक है, इसलिए एक से अधिक विकल्प सही हैं।

1 अंक · 2023 · सेट A
प्रश्न 114
Which is the correct syntax of inheritance?
उत्तर देखें

सही उत्तर: (D) More than one of the above
वंशानुगति में व्युत्पन्न वर्ग पहले आता है और उसके बाद अभिगम निर्दिष्ट करके आधार वर्ग; अभिगम न लिखा जाए तो वह निजी मान लिया जाता है—इसलिए एक से अधिक रूप सही हैं।

1 अंक · 2023 · सेट A
प्रश्न 115
निम्नलिखित में से कौन-सी C++ में is_array() function की सही परिभाषा है?
उत्तर देखें

सही उत्तर: (A) यह जाँचता है कि निर्दिष्ट variable array है या नहीं
C++ में is_array() यह जाँचता है कि दिया गया चर (variable) सरणी है या नहीं। वह सरणी की विमाएँ नहीं बताता—उसके लिए अलग साधन हैं।

1 अंक · 2023 · सेट A
प्रश्न 116
Which of the following statements is correct about a class?
उत्तर देखें

सही उत्तर: (A) An object is an instance of its class.
वस्तु (object) अपने वर्ग का एक उदाहरण होती है—वर्ग तो केवल खाका है।

1 अंक · 2023 · सेट A
प्रश्न 117
Which of the following can be used to create an abstract class in C++?
उत्तर देखें

सही उत्तर: (A) By using a pure virtual function in the class
C++ में वर्ग को अमूर्त बनाने के लिए उसमें शुद्ध आभासी फलन (pure virtual function) रखना पड़ता है।

1 अंक · 2023 · सेट A
प्रश्न 118
Which of the following statements is correct about the C++ programming language?
उत्तर देखें

सही उत्तर: (D) More than one of the above
C++ में स्थैतिक और गत्यात्मक—दोनों प्रकार की जाँच होती है और सदस्य फलन आभासी भी हो सकते हैं, इसलिए एक से अधिक कथन सही हैं।

1 अंक · 2023 · सेट A
प्रश्न 119
Which feature of OOP is indicated by the following code? class student{int marks;}; class topper: public student{int age; topper(int age) {this.age=age;}};
उत्तर देखें

सही उत्तर: (A) Encapsulation and inheritance
वर्ग के भीतर आँकड़े और फलन एक साथ बंद हैं—यह संवेष्टन; और topper वर्ग student से बना है—यह वंशानुगति। इसलिए दोनों लक्षण दिखते हैं।

1 अंक · 2023 · सेट A
प्रश्न 120
Which of the following natural elements is the primary element in computer chips?
उत्तर देखें

सही उत्तर: (B) Silicon
कंप्यूटर चिप का मुख्य तत्व सिलिकॉन है, जो अर्धचालक होने से परिपथ बनाने योग्य है।

1 अंक · 2023 · सेट A
पृष्ठ 3 / 3
← पिछला पृष्ठ