⟩ Why thread is called as a lightweight process?
It is called light weight process to emphasize the fact that a thread is like a process but is more efficient and uses fewer resources( n hence "lighter")and they also share the address space.
It is called light weight process to emphasize the fact that a thread is like a process but is more efficient and uses fewer resources( n hence "lighter")and they also share the address space.
What is the output of this program? #! /usr/bin/awk -f BEGIN { a=10; b=10; print a==b ? "true""false" } a) true b) false c) syntax error d) none of the mentioned
The comparison expression "x ~ y" will true if a) x is not equal to y b) the string x does not match the regular expression denoted by y c) the string x matches the regular expression denoted by y d) none of the mentioned
What is the output of this program? #! /usr/bin/awk -f BEGIN { print "20"<"9" ? "true""false" } a) true b) false c) syntax error d) none of the mentioned
All numeric values are represented within awk in a) double precision floating point b) integer c) exponential notation d) fixed point
Concatenation is performed by a) writing expressions next to one another, with no operator b) conditional operator c) relational operator d) matching operator
Which command on the command line provides the same output as this executable awk script? #! /usr/bin/awk -f BEGIN { print "google" } a) awk 'BEGIN {print "google"}' b) awk 'print "google"' c) awk 'print {google}' d) none of the mentioned
Which one of the following is not true? a) there are 3 types of constant expressions numeric, string and regular b) arithmetic operators are used to evaluate expressions c) assignment expression is an expression that stores a value into a variable d) comparison expressions does not compare strings for relationship
What is the output of the command awk 'BEGIN {printf "%cn",65}' a) A b) 65 c) syntax error d) none of the mentioned
The command "awk {print $1} san.txt" will a) print the first line of file san.txt b) print the first field of every line in san.txt c) generate syntax error d) none of the mentioned
Which one of the following statement is not true about the format-control letters for printf statement in awk program? a) "c" prints a number as an ASCII character b) "d" prints a decimal integer c) "h" prints an unsigned hexadecimal integer d) "o" prints an unsigned octal integer