0% found this document useful (0 votes)
22 views6 pages

Untitled Document

The documents contain multiple choice questions related to Spring Boot, RESTful web services, and ReactJS. The questions cover topics like supported Java versions, Maven dependencies, Spring Boot annotations, HTTP status codes, REST concepts, React components, state, JSX syntax and more.

Uploaded by

Vina Rodriguez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views6 pages

Untitled Document

The documents contain multiple choice questions related to Spring Boot, RESTful web services, and ReactJS. The questions cover topics like supported Java versions, Maven dependencies, Spring Boot annotations, HTTP status codes, REST concepts, React components, state, JSX syntax and more.

Uploaded by

Vina Rodriguez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

MCQ 1

Q1.Can create a non-web application in Spring Boot?

Yes
No

Q2. Which version of Java is not supported by Spring Boot

1. Java 7
2. Java 8
3. Java 10
4. Java 14

Q3. Which of the following is used by Maven?

1. pom.xml
2. config.xml
3. META-INF
4. None of the Above

Q4. How will you include a dependency in a SpringBoot Maven Project?

1. Copy & Paste the .Jar file inside src folder


2. Copy & Paste the .Jar file inside resources folder
3. Copy & Paste the .Jar file inside WEB-INF/lib folder
4. Add dependency inside pom.xml file

Q5. Which of the following statements are true?

1. The code generated by Spring Initializr provides complete code required for developing web
application.
2. Spring Initializr provides ability to choose required dependencies
3. Spring Initializr lets you download application code as zip file
4. Spring Initializr generated code doesn't contain dependencies required to support JSP views

Q6. Which annotation is used annotate the class to launch Spring application?

1. @SpringBoot
2. @SpringApplication
3. @SpringBootApplication
4. @Application

Q7. What does @SpringBootApplication annotation do?

1. Automatically creates WebApplicationContext


2. Scans configuration classes
3. launches the application
4. Waits for the application to be deployed to a Tomcat server
Q8. InternalResourceViewer resolves the logical View name to relative url by this approach

1. Adds .jsp to the given view name


2. Looks for jsp file having the same name as given logical view name.
3. Replaces all blank spaces in the logical view name with underscores
4. Prepend the configured "prefix" and append configured "suffix" to the logical view name

Q9. Business model objects are annotated with

1. @Component
2. @Model
3. @Entity
4. @Data

Q10. What annotation is used to map value to the method argument in


http://localhost:8080/StoreManager/{value"?

1. @Map
2. @PathVariable
3. @RequestParam
4. @Param

MCQ 2
Q1.Each resource in REST architecture is identified by its URI.

Yes
No

Q2. What is the HTTP Code Related to Internal Server Error?

1. 500
2. 501
3. 504
4. 200

Q3. Which protocol used in REST?

1. HTTP
2. XML
3. JMX
4. SOAP

Q4. What HTTP code 201 indicates?

1. Warning
2. Error
3. Created
4. Success

Q5. What is JSON Stands for?

1. JavaScript Object Number


2. JavaScript Object Notation
3. JavaScript Object Naming
4. JavaScript Object Notification

Q6. What are the mark up languages available in REST Services?

1. HTML and VBSCRIPT


2. HTML and XML
3. JSON and XML
4. XML and Java

Q7. How will you access the parameter defined in the Web Service URI ?

1. @PathParam
2. @Param
3. @PathString
4. @Parameter
Q8. Which class is provided by JAX-RS for asynchronous resource ourput
1. AsyncOut
2. AsyncResponse
3. AsyncOutput
4. AsyncRes

Q9. Which is not a HTTP Verb in a Restful Web Service

1. Get
2. Post
3. String
4. Delete

Q10. What is true about URI in RESTful web services? (Select multiple)

a. Each API endpoint has a URI


b. URI is used to locate a web service in the server
c. URI is used for logging purpose
d. None of the above.

MCQ 3
Q1. Who develops react.js?

1. Apple
2. Facebook
3. Twitter
4. Google

Q2. What is ReactJs?

1. Server side framework


2. A Library for building interaction interfaces
3. Client Side Framework
4. None of the above

Q3. React Js cover Data layer in Application

Yes
No

Q4. What is state in react?

1. A permanent storage
2. Internal storage of the component
3. Both 1 and 2
4. None of above

Q5. What will happen if you render an input element with disabled = {true}

1. It will be rendered as disabled


2. It will not be rendered at all
3. It will be rendered as enabled

Q6. What is the default port where react app will run

1. 8080
2. 3333
3. 3000
4. 6020

Q7. Which function is used to chnage the state of react component

1. this.setChangeState
2. this.State{}
3. this.setState
4. Both 2 and 3
Q8. Everything in React is _______

1. Module
2. Package
3. class
4. Component

Q9. What is the use of “webpack” command in React?

1. It runs react local development server


2. It transpires all the Javascript down into one file
3. Both
4. None

Q10. How do you write an inline style specifying the font-size:19px and color:blue; in JSX
style={{font-size:19,color:'blue'}}
style= {fontSize:'19px',color:'blue'}
style= {{font-size:19px,color:'blue'}}
style= {{fontSize:'19px',color:'blue'}}

You might also like