Question: TRUE FALSE C PROGRAM and LINUX ____1. In C, NULL is 0. ____2. In Linux, command chmod 111 c.txt is to make the file c.txt
TRUE FALSE C PROGRAM and LINUX

____1. In C, NULL is 0.
____2. In Linux, command chmod 111 c.txt is to make the file c.txt read-only.
____3. In a C program, if a string s is defined as
char s[]="hello world!";
then strlen(s) and sizeof(s) return the same value.
____4. Regular express [1-5] is the same as [12345].
____5. Regular express [eo$] is to match letter o or letter e at the end of a line.
____6. In a C program with the main function defined as int main(int argc, char argv[][]), the argv parameter is a two-dimensional array of characters.
____7. Statement int * a, b; is to define two pointers a and b.
____8. For two variables a and b created as follows unsigned int a=3, b=5, the value of a|b is 1.
____9. For two variables a and b created as follows unsigned int a=3, b=5, the value of b>>a is 1.
____ 10. For variables a created as follows char *a=abcdefgh; the value of a[3] is 'c'.
.30PM-3:50PM, DATE: Thurday, October 25, 2018 PART L True/False Questions (2 points 9). Write True/T or F F1. Different Linux distributions may use the same Linux kernel 2. In Linux, a program can call open 0 to open a FIFO (named pipe) 3. In Linux, a program can maps a part of a file (not a whole fle) to its vintual memory space with 4. In a program with multiple threads, synchronization is 5. In C, a two-dimensional array is actually an aray of pointers, each of which points to a one-dimensional he/F on the anower sheet needed to prevent race array 6. The only difference between named semaphores and unnamed semaphores is that named semaphores have 7. Regular express Ieo] is to match letter o or letter e from the beginning of a line 8. Statement int a, b; is to define two pointers a and b. names, but unnamed semaphores don't -9. In Linux, a process can call write() to send data to another process through a pipe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
