William created a simple Vue instance, as shown below:

<div id="app">
	<h3>User Details</h3>
	{{getData("Mary")}}
</div>
<script>
	const { createApp } = Vue
	var bioData = [{ name: "Mary", placeOfBirth: "New York", age: 34 }];
	const app = createApp({
     	data() {
        	return { bioData }
      	},
        methods: {
        	getData: function (name, age) {
              	return this.name == this.bioData[0].name
            }
        }
  	}).mount('#app')
</script>

Predict the output of the code.

Error

User Details 

false

User Details 

Mary

User Details 

true

Verified Answer
Correct Option - b

To get all Infosys Certified VueJS Professional Exam questions Join Telegram Group https://bit.ly/infy_premium_group

Telegram

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in

Updated on Sun, 6 Jul 2025