Question
The number of boys in a class is five times the number
of girls. Which of the following numbers cannot represent the total number of children in the class?Solution
The number of girls be x The number of boys is 5x Total number of student = x + 5x = 6x The number which is divisible by 6 is the number of children. So, 64 is not divisible by 6.
Which operator is used to append output to a file?
If a program needs to read data from a file, which system call would it typically use?
How do you access the value of a variable named `USERNAME` in a shell script?
Which construct allows embedding a block of text in shell scripts as input?
Which operator is used for string equality comparison within `test` or `[` commands in shell scripting?
Which command is used to read user input from the keyboard and store it in a variable?
Which symbol is used to make a script executable in Linux?
In shell scripting, $1 represents:
Which command safely iterates over filenames that may contain spaces and newlines in a shell script?
Which statement correctly defines a variable in shell scripting?