IT quiz
All questions
Sign in
Sign up
JavaScript
HTML
CSS
PostgreSQL
PHP
Linux
Git
Docker
SCSS
TypeScript
SQL
Vue
DNS
Go
frontend (web)
Redis
backend
Gitlab
CI/CD
Vite
webpack
Node.js
HTTP
Python
Kotlin
Nuxt
Question #69
Author:
admin
tags:
Linux
Is the syntax of the code of this shell script correct?
some_func() { return "hello" } echo $(some_func)
Yes
No, function definition must be started with
function
keyword
No,
some_func
must be called with parenthesis like this:
some_func()
No, shell functions don't have
return
command
No, function may return only number as exit-code or nothing
Answer
Rate the difficulty of the question:
1
2
3
4
5
6
7
8
9
10
easy
hard
←
Previous question
Next question
→
Write new comment