Google Apps Script - Exercise Coding Projects - Add Date to Google Doc at Cursor Document Apps Script Example

Google Apps Script - Exercise Coding Projects - Add Date to Google Doc at Cursor Document Apps Script Example

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the initial step to add a formatted date in a Google Doc using a UI button?

Create a new Google Sheet

Access the Google App Script editor

Use a pre-existing template

Install a third-party plugin

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'create menu' method in Google App Script?

To delete existing menus

To create a new document

To add a custom menu to the UI

To format text in the document

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of the 'on open' function in the script?

To print the document

To add a UI item when the document opens

To save the document automatically

To close the document

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get the active document in Google App Script?

getDoc()

getCurrentDoc()

getDocument()

getActiveDocument()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What must be done before the script can interact with the Google Doc?

Authorize the script

Install a browser extension

Change the document's font

Restart the computer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which object is used to format the date in the script?

DateFormatter

TimeZone

DateObject

Utilities

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the 'add date' button is clicked for the first time?

The document is saved

A popup asks for script authorization

The document closes

The script runs without any prompt