સોફ્ટવેર એન્જિનિયરિંગ: પ્રશ્નો અને જવાબોSoftware Engineering: questions and answers
GPSC, GSSSB, તલાટી અને ગુજરાત પોલીસ પરીક્ષા માટે 10 ફ્રી પ્રશ્નો, દરેકનો જવાબ અને ગુજરાતી + English સમજૂતી સાથે.10 free practice questions for GPSC, GSSSB, Talati and Gujarat Police exams, each with the answer and a Gujarati + English explanation.
1. ચપળ પદ્ધતિમાં, "સ્પ્રિન્ટ" સામાન્ય રીતે ચાલે છે:In Agile methodology, a "Sprint" typically lasts:
- A1 day1 day
- B1-4 weeks1-4 weeks
- C3-6 months3-6 months
- D1 year1 year
જવાબ જુઓShow answer
જવાબ:Answer: (B) 1-4 weeks1-4 weeks
સ્ક્રમ (એક ચપળ ફ્રેમવર્ક) માં, સ્પ્રિન્ટ એ સામાન્ય રીતે 1-4 અઠવાડિયાનો એક નિશ્ચિત સમયગાળો છે જે દરમિયાન વિશેષતાઓનો ચોક્કસ સમૂહ વિકસિત, પરીક્ષણ અને વિતરિત કરવામાં આવે છે.In Scrum (an Agile framework), a Sprint is a fixed time period of typically 1-4 weeks during which a specific set of features is developed, tested, and delivered.
2. સોફ્ટવેર ડેવલપમેન્ટમાં "રિફેક્ટરિંગ" શું છે?What is "Refactoring" in software development?
- Aહાલના કોડમાં નવી સુવિધાઓ ઉમેરી રહ્યા છીએAdding new features to existing code
- Bતેને સુધારવા માટે તેના બાહ્ય વર્તનને બદલ્યા વિના કોડની આંતરિક રચના બદલવીChanging the internal structure of code without changing its external behavior to improve it
- Cસૉફ્ટવેરને બીજી ભાષામાં ફરીથી લખવુંRewriting the software in a different language
- Dવપરાશકર્તાઓ દ્વારા જાણ કરવામાં આવેલી ગંભીર ભૂલોને ઠીક કરવીFixing critical bugs reported by users
જવાબ જુઓShow answer
જવાબ:Answer: (B) તેને સુધારવા માટે તેના બાહ્ય વર્તનને બદલ્યા વિના કોડની આંતરિક રચના બદલવીChanging the internal structure of code without changing its external behavior to improve it
રિફૅક્ટરિંગ એ સૉફ્ટવેરની બિન-કાર્યકારી વિશેષતાઓ (વાંચવાની ક્ષમતા, ઘટાડેલી જટિલતા) ને સુધારવા માટે, તેના બાહ્ય વર્તનને બદલ્યા વિના - હાલના કમ્પ્યુટર કોડનું પુનર્ગઠન કરવાની પ્રક્રિયા છે - ફેક્ટરિંગને બદલવું.Refactoring is the process of restructuring existing computer code—changing the factoring—without changing its external behavior, to improve nonfunctional attributes of the software (readability, reduced complexity).
3. સોફ્ટવેર ડિઝાઇન પેટર્ન કે જે એલ્ગોરિધમ્સના પરિવારને વ્યાખ્યાયિત કરે છે, દરેકને સમાવિષ્ટ કરે છે અને તેમને વિનિમયક્ષમ બનાવે છે તેને કહેવામાં આવે છે:A software design pattern that defines a family of algorithms, encapsulates each one, and makes them interchangeable is called:
- AObserver patternObserver pattern
- BStrategy patternStrategy pattern
- CFactory patternFactory pattern
- DDecorator patternDecorator pattern
જવાબ જુઓShow answer
જવાબ:Answer: (B) Strategy patternStrategy pattern
વ્યૂહરચના પેટર્ન એ વર્તણૂકીય ડિઝાઇન પેટર્ન છે જે રનટાઈમ પર અલ્ગોરિધમ પસંદ કરવાનું સક્ષમ કરે છે. તે એલ્ગોરિધમ્સના કુટુંબને વ્યાખ્યાયિત કરે છે, દરેકને સમાવે છે અને તેમને વિનિમયક્ષમ બનાવે છે.The Strategy pattern is a behavioral design pattern that enables selecting an algorithm at runtime. It defines a family of algorithms, encapsulates each one, and makes them interchangeable.
4. UML માં ઉપયોગ કેસ ડાયાગ્રામ બતાવે છે:A use case diagram in UML shows:
- AClass hierarchiesClass hierarchies
- Bઅભિનેતાઓ અને સિસ્ટમ વચ્ચેની ક્રિયાપ્રતિક્રિયાઓInteractions between actors and a system
- CDatabase schemaDatabase schema
- DNetwork topologyNetwork topology
જવાબ જુઓShow answer
જવાબ:Answer: (B) અભિનેતાઓ અને સિસ્ટમ વચ્ચેની ક્રિયાપ્રતિક્રિયાઓInteractions between actors and a system
ઉપયોગ કેસ ડાયાગ્રામ અભિનેતાઓ (વપરાશકર્તાઓ, બાહ્ય સિસ્ટમો) અને સિસ્ટમની કાર્યક્ષમતા (ઉપયોગના કિસ્સાઓ) વચ્ચેની ક્રિયાપ્રતિક્રિયા દર્શાવે છે. તેનો ઉપયોગ સિસ્ટમ આવશ્યકતાઓને મેળવવા માટે થાય છે.A use case diagram shows the interactions between actors (users, external systems) and a system's functionality (use cases). It is used to capture system requirements.
5. Git (સંસ્કરણ નિયંત્રણ) માં, સ્થાનિક રીપોઝીટરીમાં તમારા ફેરફારોને સાચવવાનો આદેશ છે:In Git (Version Control), the command to save your changes to the local repository is:
- Agit pushgit push
- Bgit addgit add
- Cgit commitgit commit
- Dgit pullgit pull
જવાબ જુઓShow answer
જવાબ:Answer: (C) git commitgit commit
"git કમિટ" સ્થાનિક રીપોઝીટરીમાં ફેરફારો રેકોર્ડ કરે છે. "git add" તેમને સ્ટેજ કરે છે, અને "git push" સ્થાનિક કમિટ્સને રિમોટ રિપોઝીટરીમાં અપલોડ કરે છે."git commit" records changes to the local repository. "git add" stages them, and "git push" uploads the local commits to a remote repository.
6. કોડ ગંધનો સંદર્ભ આપે છે:Code smell refers to:
- Aકોડમાં વાયરસA virus in the code
- Bનબળી ડિઝાઇનના લક્ષણો જે સમસ્યાઓ તરફ દોરી શકે છેSymptoms of poor design that may lead to problems
- CA type of testingA type of testing
- DA programming language featureA programming language feature
જવાબ જુઓShow answer
જવાબ:Answer: (B) નબળી ડિઝાઇનના લક્ષણો જે સમસ્યાઓ તરફ દોરી શકે છેSymptoms of poor design that may lead to problems
કોડ સ્મેલ એ સોર્સ કોડમાં નબળી ડિઝાઇનના લક્ષણો અથવા સૂચક છે જે ઊંડી સમસ્યાઓનો સંકેત આપી શકે છે. ઉદાહરણોમાં લાંબી પદ્ધતિઓ, ડુપ્લિકેટ કોડ અને વધુ પડતી ટિપ્પણીઓનો સમાવેશ થાય છે.Code smells are symptoms or indicators of poor design in source code that may signal deeper problems. Examples include long methods, duplicated code, and excessive comments.
7. બ્લેક બોક્સ પરીક્ષણ આના પર ધ્યાન કેન્દ્રિત કરે છે:Black box testing focuses on:
- AInternal code structureInternal code structure
- Bઆંતરિક કોડના જ્ઞાન વિના ઇનપુટ/આઉટપુટ વર્તનInput/output behavior without knowledge of internal code
- CMemory usageMemory usage
- DCompilation errorsCompilation errors
જવાબ જુઓShow answer
જવાબ:Answer: (B) આંતરિક કોડના જ્ઞાન વિના ઇનપુટ/આઉટપુટ વર્તનInput/output behavior without knowledge of internal code
બ્લેક બોક્સ ટેસ્ટિંગ (કાર્યકારી પરીક્ષણ) આંતરિક કોડની જાણકારી વિના તેના વિશિષ્ટતાઓના આધારે સોફ્ટવેરનું પરીક્ષણ કરે છે. તે ઇનપુટ્સ અને અપેક્ષિત આઉટપુટ પર ધ્યાન કેન્દ્રિત કરે છે.Black box testing (functional testing) tests the software based on its specifications without knowledge of internal code. It focuses on inputs and expected outputs.
8. મેટ્રિક જે પ્રોગ્રામમાં અલગ ઓપરેટર્સ અને ઓપરેન્ડ્સની સંખ્યાને માપે છે તે આનો ભાગ છે:The metric that measures the number of distinct operators and operands in a program is part of:
- ACyclomatic ComplexityCyclomatic Complexity
- BHalstead Software Science MetricsHalstead Software Science Metrics
- CFunction Point AnalysisFunction Point Analysis
- DCOCOMO ModelCOCOMO Model
જવાબ જુઓShow answer
જવાબ:Answer: (B) Halstead Software Science MetricsHalstead Software Science Metrics
મોરિસ હેલ્સ્ટેડે સોર્સ કોડમાં ઓપરેટર્સ અને ઓપરેન્ડ્સની સંખ્યાને ઓળખવા પર આધારિત સોફ્ટવેર મેટ્રિક્સનો સમૂહ વિકસાવ્યો હતો. આ પ્રોગ્રામ લંબાઈ, વોલ્યુમ અને પ્રયત્નોની ગણતરી માટેનો આધાર બનાવે છે.Maurice Halstead developed a set of software metrics based on identifying the number of operators and operands in the source code. These form the basis for calculating program length, volume, and effort.
9. સૉફ્ટવેર એન્જિનિયરિંગમાં જોડાણનો સંદર્ભ આપે છે:Coupling in software engineering refers to:
- Aસોફ્ટવેર મોડ્યુલો વચ્ચે પરસ્પર નિર્ભરતાની ડિગ્રીThe degree of interdependence between software modules
- Bમોડ્યુલની કાર્યાત્મક તાકાતThe functional strength of a module
- Cસૉફ્ટવેર કોડનું કદThe size of the software code
- DThe speed of executionThe speed of execution
જવાબ જુઓShow answer
જવાબ:Answer: (A) સોફ્ટવેર મોડ્યુલો વચ્ચે પરસ્પર નિર્ભરતાની ડિગ્રીThe degree of interdependence between software modules
કપલિંગ એ મોડ્યુલો વચ્ચેના પરસ્પર નિર્ભરતાની ડિગ્રીનું માપ છે. સારી સૉફ્ટવેર ડિઝાઇનનો હેતુ છૂટક જોડાણ અને ઉચ્ચ સુસંગતતા માટે છે.Coupling is the measure of the degree of interdependence between the modules. Good software design aims for loose coupling and high cohesion.
10. વોટરફોલ મોડેલ એ છે:The Waterfall model is a:
- AIterative modelIterative model
- BLinear sequential modelLinear sequential model
- CAgile modelAgile model
- DPrototype modelPrototype model
જવાબ જુઓShow answer
જવાબ:Answer: (B) Linear sequential modelLinear sequential model
વોટરફોલ મોડલ એક રેખીય અનુક્રમિક અભિગમ છે જ્યાં દરેક તબક્કો (જરૂરિયાતો → ડિઝાઇન → અમલીકરણ → પરીક્ષણ → જમાવટ → જાળવણી) આગલી શરૂઆત થાય તે પહેલાં પૂર્ણ થવી જોઈએ.The Waterfall model is a linear sequential approach where each phase (Requirements → Design → Implementation → Testing → Deployment → Maintenance) must be completed before the next begins.
સોફ્ટવેર એન્જિનિયરિંગ ના વધુ 4 સેટ4 more sets of Software Engineering
પ્રેક્ટિસમાં દરેક પ્રશ્ન પછી તરત જવાબ મળે છે. ફુલ મોક ટેસ્ટમાં અસલી પરીક્ષા જેવો સમય હોય છે.Practice gives the answer right after each question. Full mock tests time you like the real exam.