logo

Crowdly

Browser

Додати до Chrome

CEWP MOD8 GRA 2254 (Winter 2026)

Шукаєте відповіді та рішення тестів для CEWP MOD8 GRA 2254 (Winter 2026)? Перегляньте нашу велику колекцію перевірених відповідей для CEWP MOD8 GRA 2254 (Winter 2026) в moodle.concordia.ca.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

In a vue/cli project, the public folder is the right place to store all your project assets, such as styles, image, vendors, etc.

0%
100%
Переглянути це питання

The code below was extracted

from the class.

Knowing that you have the

following project hierarchy.

Analyze the code below and

choose only the correct answers.

There are 4 correct answers.

Each correct answer adds 25% to the question's grade.

Each wrong answer chosen reduces the question's grade by 25%.

Project Hierarchy

File: server/app/routes/product.route.js

  1. module.exports = app => {
  2.     const product = require("../controllers/product.controller.js")
  3.     const router = require("express").Router()
  4.     router.post("/", product.create)
  5.     router.get("/", product.findAll)
  6.     router.put("/:id", product.update)
  7.     router.delete("/:id", product.delete)
  8.     app.use('/api/product'

    ,

    router)
  9.  

    }

Переглянути це питання

How to retrieve the id value of a route that has a declared path /product/:id

Fill in the gap.

this.$route..id

Переглянути це питання

The code below was extracted

from the class.

Knowing that you have the

following project hierarchy.

Analyze the code below and

choose only the correct answers.

There are 4 correct answers.

Each correct answer adds 25% to the question's grade.

Each wrong answer chosen reduces the question's grade by 25%.

Project Hierarchy

File: server\app\models\product.model.js

  1. module.exports = (connex, Sequelize) => {
  2.     const Product = connex.define('product',{
  3.         name:{
  4.             type: Sequelize.STRING
  5.         },
  6.         photo:{
  7.             type: Sequelize.STRING
  8.         },
  9.         price:{
  10.             type: Sequelize.REAL
  11.         },
  12.         description:{
  13.             type: Sequelize.TEXT
  14.         },
  15.         type:{
  16.             type: Sequelize.STRING
  17.         }
  18.     })
  19.     return Product
  20. }

Переглянути це питання

what is the correct vue/cli project folder to save a template that will be used multiple times in the project.

Переглянути це питання

Analyze the code below extracted from the project/cli client.

Choose only the correct answers.

There are 4 correct answers.

Each correct answer adds 25% to the question's grade.

Each wrong answer chosen reduces the question's grade by 25%.

file: project-cli\src\services\ProductDataService.js

  1. import http from '../http-common'
  2. class ProductDataService {
  3.   getAll () {
  4.     return http.get('/product')
  5.   }
  6.   get (id) {
  7.     return http.get(`/product/${id}`)
  8.   }
  9.   create (data) {
  10.     return http.post('/product', data)
  11.   }
  12.   update (id, data) {
  13.     return http.put(`/product/${id}`, data)
  14.   }
  15.   delete (id) {
  16.     return http.delete(`/product/${id}`)
  17.   }
  18. }
  19. export default new ProductDataService()

Переглянути це питання

The npm init command allows you to:

I - Create a configuration package.json

II - Run node.js server

III - Install the node.js module

Переглянути це питання

In an MVC architecture, table properties will be stored on:

Переглянути це питання

The code below was extracted

from the class.

Knowing that you have the

following project hierarchy.

Analyze the code below and

choose only the correct answers

There are 4 correct answers.

Each correct answer adds 25% to the question's grade.

Each wrong answer chosen reduces the question's grade by 25%.

Project Hierarchy

File: server\app\controllers\product.controller.js

  1. const db = require('../models')
  2. const Product = db.products
  3. const Op = db.Sequelize.Op
  4. exports.update = (req, res) => {
  5.     const id = req.params.id;
  6.     Product.update(req.body, {
  7.       where: { id: id }
  8.     })
  9.       .then(num => {
  10.         if (num == 1) {
  11.           res.send({
  12.             message: 'Product was updated successfully.'
  13.           });
  14.         } else {
  15.           res.send({
  16.             message: `Cannot update product with id=${id}. Maybe product was not found or is empty!`
  17.           });
  18.         }
  19.       })
  20.       .catch(err => {
  21.         res.status(500).send({
  22.           message: `Error updating Product with id=${id}`
  23.         })
  24.       })  
  25.   }

0%
0%
0%
0%
Переглянути це питання

How to retrieve a src folder path into a <template>  in a  vue/cli view or component.

Fill the gap.

<img :src="('@/assets/img/'+product.photo)"/>

Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.concordia.ca?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome