વેબ ટેકનોલોજી: પ્રશ્નો અને જવાબોWeb Technology: 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. CSS ગ્રીડ લેઆઉટ એ છે:The CSS Grid Layout is a:
- AOne-dimensional layout systemOne-dimensional layout system
- BTwo-dimensional layout systemTwo-dimensional layout system
- CTool for styling typographyTool for styling typography
- DJavaScript library for animationsJavaScript library for animations
જવાબ જુઓShow answer
જવાબ:Answer: (B) Two-dimensional layout systemTwo-dimensional layout system
CSS ગ્રીડ લેઆઉટ વેબ માટે દ્વિ-પરિમાણીય લેઆઉટ સિસ્ટમ છે. તે તમને પંક્તિઓ અને કૉલમ્સમાં સામગ્રીને બહાર મૂકવા દે છે. (ફ્લેક્સબોક્સ મુખ્યત્વે એક-પરિમાણીય છે).CSS Grid Layout is a two-dimensional layout system for the web. It lets you lay content out in rows and columns. (Flexbox is primarily one-dimensional).
2. કઈ મિકેનિઝમ વેબ પેજને સમગ્ર પૃષ્ઠને ફરીથી લોડ કર્યા વિના સર્વર પર અસુમેળ HTTP વિનંતીઓ કરવાની મંજૂરી આપે છે?Which mechanism allows a web page to make asynchronous HTTP requests to the server without reloading the entire page?
- AAJAXAJAX
- BCORSCORS
- CWebSocketsWebSockets
- DGraphQLGraphQL
જવાબ જુઓShow answer
જવાબ:Answer: (A) AJAXAJAX
AJAX (અસુમેળ JavaScript અને XML) એ અસુમેળ વેબ એપ્લિકેશન બનાવવા માટે ક્લાયંટ બાજુ પર ઘણી વેબ તકનીકોનો ઉપયોગ કરીને વેબ વિકાસ તકનીકોનો સમૂહ છે.AJAX (Asynchronous JavaScript and XML) is a set of web development techniques using many web technologies on the client side to create asynchronous web applications.
3. પાયથોનમાં, ફંક્શનને વ્યાખ્યાયિત કરવા માટે કયા કીવર્ડનો ઉપયોગ થાય છે?In Python, which keyword is used to define a function?
- Afunctionfunction
- Bdefdef
- Cfuncfunc
- Ddefinedefine
જવાબ જુઓShow answer
જવાબ:Answer: (B) defdef
પાયથોનમાં, ફંક્શનને "def" કીવર્ડનો ઉપયોગ કરીને વ્યાખ્યાયિત કરવામાં આવે છે અને ફંક્શન નામ અને કૌંસ દ્વારા અનુસરવામાં આવે છે.In Python, a function is defined using the "def" keyword followed by the function name and parentheses.
4. JavaScript માં, "===" ઓપરેટરનો ઉપયોગ આ માટે થાય છે:In JavaScript, the "===" operator is used for:
- AAssignmentAssignment
- Bસખત સમાનતા સરખામણી (મૂલ્ય અને પ્રકાર)Strict equality comparison (value and type)
- Cછૂટક સમાનતા સરખામણી (માત્ર મૂલ્ય)Loose equality comparison (value only)
- DBitwise comparisonBitwise comparison
જવાબ જુઓShow answer
જવાબ:Answer: (B) સખત સમાનતા સરખામણી (મૂલ્ય અને પ્રકાર)Strict equality comparison (value and type)
કડક સમાનતા ઓપરેટર (===) તપાસે છે કે તેના બે ઓપરેન્ડ સમાન છે કે નહીં, બુલિયન પરિણામ પરત કરે છે. સમાનતા ઓપરેટર (==) થી વિપરીત, તે હંમેશા વિવિધ પ્રકારના ઓપરેન્ડને અલગ માને છે.The strict equality operator (===) checks whether its two operands are equal, returning a Boolean result. Unlike the equality operator (==), it always considers operands of different types to be different.
5. ક્લાઉડ કમ્પ્યુટિંગના સંદર્ભમાં, AWS EC2 એનું ઉદાહરણ છે:In the context of Cloud Computing, AWS EC2 is an example of:
- ASaaSSaaS
- BPaaSPaaS
- CIaaSIaaS
- DFaaSFaaS
જવાબ જુઓShow answer
જવાબ:Answer: (C) IaaSIaaS
Amazon Elastic Compute Cloud (EC2) ક્લાઉડમાં માપી શકાય તેવી કમ્પ્યુટિંગ ક્ષમતા પ્રદાન કરે છે. તે ઇન્ફ્રાસ્ટ્રક્ચર એઝ અ સર્વિસ (IaaS)નું મુખ્ય ઉદાહરણ છે.Amazon Elastic Compute Cloud (EC2) provides scalable computing capacity in the cloud. It is a prime example of Infrastructure as a Service (IaaS).
6. ડ્રોપ-ડાઉન સૂચિ બનાવવા માટે કયા HTML ટેગનો ઉપયોગ થાય છે?Which HTML tag is used to create a drop-down list?
- A<dropdown><dropdown>
- B<list><list>
- C<select><select>
- D<input type="dropdown"><input type="dropdown">
જવાબ જુઓShow answer
જવાબ:Answer: (C) <select><select>
<select> ઘટકનો ઉપયોગ ડ્રોપ-ડાઉન સૂચિ બનાવવા માટે થાય છે. <select> તત્વની અંદરના <option> ટૅગ્સ ડ્રોપ-ડાઉન સૂચિમાં ઉપલબ્ધ વિકલ્પોને વ્યાખ્યાયિત કરે છે.The <select> element is used to create a drop-down list. The <option> tags inside the <select> element define the available options in the drop-down list.
7. કયો HTTP સ્ટેટસ કોડ "નોટ ફાઉન્ડ" દર્શાવે છે?Which HTTP status code signifies "Not Found"?
- A200200
- B403403
- C404404
- D500500
જવાબ જુઓShow answer
જવાબ:Answer: (C) 404404
404 નોટ ફાઉન્ડ ક્લાયંટ એરર રિસ્પોન્સ કોડ સૂચવે છે કે સર્વર વિનંતી કરેલ સ્ત્રોત શોધી શકતું નથી.The 404 Not Found client error response code indicates that the server cannot find the requested resource.
8. ઇમેજ માટે વૈકલ્પિક ટેક્સ્ટ પ્રદાન કરવા માટે કઈ HTML વિશેષતાનો ઉપયોગ કરવામાં આવે છે, જે ઍક્સેસિબિલિટી અને SEO માટે મહત્વપૂર્ણ છે?Which HTML attribute is used to provide alternative text for an image, vital for accessibility and SEO?
- Atitletitle
- Bsrcsrc
- Caltalt
- Ddescdesc
જવાબ જુઓShow answer
જવાબ:Answer: (C) altalt
જો ઇમેજ પ્રદર્શિત કરી શકાતી નથી, તો "alt" વિશેષતા ઇમેજ માટે વૈકલ્પિક ટેક્સ્ટનો ઉલ્લેખ કરે છે. સ્ક્રીન રીડર્સ આનો ઉપયોગ દૃષ્ટિહીન વપરાશકર્તાઓને છબીનું વર્ણન કરવા માટે કરે છે.The "alt" attribute specifies an alternate text for an image, if the image cannot be displayed. Screen readers use this to describe the image to visually impaired users.
9. JavaScript માં `let` અને `var` વચ્ચે પ્રાથમિક તફાવત શું છે?What is the primary difference between `let` and `var` in JavaScript?
- A`લેટ` બ્લોક-સ્કોપ્ડ છે, જ્યારે `var` ફંક્શન-સ્કોપ્ડ છે`let` is block-scoped, while `var` is function-scoped
- B`લેટ` સ્થિરાંકો જાહેર કરે છે, જ્યારે `var` ચલો જાહેર કરે છે`let` declares constants, while `var` declares variables
- C`લેટ` નો ઉપયોગ ફક્ત Node.js માં થાય છે, `var` બ્રાઉઝર માટે છે`let` is used in Node.js only, `var` is for browsers
- DThere is no differenceThere is no difference
જવાબ જુઓShow answer
જવાબ:Answer: (A) `લેટ` બ્લોક-સ્કોપ્ડ છે, જ્યારે `var` ફંક્શન-સ્કોપ્ડ છે`let` is block-scoped, while `var` is function-scoped
`var` સાથે ઘોષિત વેરીએબલ્સને એન્ક્લોઝિંગ ફંક્શન (અથવા ગ્લોબલ) માટે સ્કોપ કરવામાં આવે છે, જ્યારે `લેટ` (અને `કોન્સ્ટ`) સાથે જાહેર કરાયેલા વેરિયેબલ્સને એન્ક્લોઝિંગ બ્લોક (જેમ કે લૂપ અથવા જો સ્ટેટમેન્ટ) માટે સ્કોપ કરવામાં આવે છે.Variables declared with `var` are scoped to the enclosing function (or global), whereas variables declared with `let` (and `const`) are scoped to the enclosing block (like a loop or if statement).
10. React.js માં, "useState" હૂકનો હેતુ શું છે?In React.js, what is the purpose of the "useState" hook?
- ATo handle routingTo handle routing
- Bકાર્યાત્મક ઘટકોમાં રાજ્યનું સંચાલન કરવુંTo manage state in functional components
- CAPI માંથી ડેટા મેળવવા માટેTo fetch data from APIs
- DTo create class componentsTo create class components
જવાબ જુઓShow answer
જવાબ:Answer: (B) કાર્યાત્મક ઘટકોમાં રાજ્યનું સંચાલન કરવુંTo manage state in functional components
UseState હૂક એ એક કાર્ય છે જે તમને પ્રતિક્રિયામાં કાર્યાત્મક ઘટકોમાં રાજ્ય ઉમેરવાની મંજૂરી આપે છે.The useState hook is a function that allows you to add state to functional components in React.
વેબ ટેકનોલોજી ના વધુ 2 સેટ2 more sets of Web Technology
પ્રેક્ટિસમાં દરેક પ્રશ્ન પછી તરત જવાબ મળે છે. ફુલ મોક ટેસ્ટમાં અસલી પરીક્ષા જેવો સમય હોય છે.Practice gives the answer right after each question. Full mock tests time you like the real exam.