Introduction to Deno vs. Node.js: Core Differences Quiz

  1. Deno's Language Support

    Which programming language does Deno support out of the box for scripting, besides JavaScript?

    1. TypeScript
    2. CoffeeScript
    3. RubyScript
    4. C++Script
    5. PythonScript
  2. Package Management Approach

    How does Deno handle dependency management differently compared to Node.js?

    1. Direct URL imports
    2. Using a package.json file
    3. Through a deno_modules folder
    4. By downloading deb files
    5. Via Gemfile
  3. Security Defaults

    What is the default security setting of Deno regarding filesystem and network access?

    1. Denied by default
    2. Permitted by default
    3. Requires password by default
    4. Always encrypted
    5. Auto-approved
  4. Standard Library Usage

    Which statement correctly describes how Deno’s standard library can be accessed?

    1. By importing modules from URLs
    2. By installing via a .librc file
    3. Through an included node_modules folder
    4. Via Registry Center
    5. By using npm install commands
  5. Execution Command

    Which command runs a JavaScript or TypeScript file using Deno?

    1. deno run
    2. node execute
    3. den run
    4. npm start
    5. dnor
  6. Compatibility with Existing Code

    What challenge might developers face when migrating Node.js code directly to Deno?

    1. Some Node.js APIs are not available in Deno
    2. Deno only supports Python files
    3. Deno requires GUI code only
    4. Files must be renamed to .jsx
    5. Deno does not support any modules
  7. Global Package Installation

    How do users install global command-line tools with Deno?

    1. Using deno install
    2. Through global.json
    3. By typing deno global add
    4. npm install -g
    5. deno set up
  8. Module Resolution

    Unlike Node.js, what must Deno imports always include when importing from a URL?

    1. The full file extension
    2. Only the directory name
    3. A .package specifier
    4. A hash code
    5. A yaml file reference
  9. Built-in Tooling

    Which of these developer tools is built into Deno without needing any extra installation?

    1. Formatter
    2. Package registry
    3. Webpack
    4. TypeORM
    5. Yarn
  10. Node.js Package Compatibility

    Which statement is true about Deno’s compatibility with Node.js packages by default?

    1. Deno does not natively run Node.js packages
    2. Deno automatically converts all packages
    3. Deno requires package.json to work
    4. All npm packages work without changes
    5. Deno has built-in nvm