Tag: science & technology

Questions Related to science & technology

Multiple choice general knowledge science & technology
  1. Kagerman

  2. Pulak Prasad

  3. Neal Patterson

  4. None

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Neal Patterson was the co-founder and CEO of Cerner Corporation, a major healthcare IT company, from 1983 until his death in 2017. He led Cerner to become one of the largest electronic health records providers in the world.

Multiple choice general knowledge science & technology
  1. Samuel J Palmisano

  2. Jeffrey R Immelt

  3. Francisco D' Souza

  4. JOhn Chambers

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Samuel J. Palmisano served as CEO of IBM from 2002 to 2011, overseeing the company's strategic shift toward services and software. He was succeeded by Ginni Rometty. The question asks for the CEO (past tense implied by era).

Multiple choice general knowledge science & technology
  1. Francisco D' Souza

  2. Laurence J Ellison

  3. John Chambers

  4. Samuel J Palmisano

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Francisco D'Souza served as CEO of Cognizant from 2007 to 2019, leading it through a period of explosive growth to become one of the largest IT services companies globally. He succeeded the founder Lakshmi Narayanan. Current CEO (2023 onwards) is Ravi Kumar.

Multiple choice general knowledge science & technology
  1. ls

  2. ls -l

  3. ls -ltr

  4. ls -la

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The 'ls -ltr' command lists files in long format (-l), reverse (-r) and by modification time (-t). This combination shows the most recently modified files at the bottom, which is the standard Unix/Linux approach for viewing files with oldest first. The 'r' flag reverses the default order.

Multiple choice general knowledge science & technology
  1. awk '{print $9}' test.txt > Result.txt

  2. awk '{print $9}' Result.txt > test.txt

  3. awk '{print $9}' Test.txt > result.txt

  4. awk '{print $9}' result.txt > Test.txt

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The awk command '{print $9}' extracts the 9th column from each line of test.txt, and the '>' operator redirects the output to Result.txt. This is the correct syntax and file order. The other options either swap the file names (which would overwrite test.txt) or have incorrect case sensitivity in filenames (Unix is case-sensitive).

Multiple choice general knowledge science & technology
  1. ls -l /tmp/user | head -5 /app/unix/dir

  2. ls -l /app/unix/dir | head -5

  3. ls /app/Unix/dir | Head +5

  4. ls /app/unix/dir | head +5

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The correct approach is to first list the target directory (/app/unix/dir) with 'ls -l', then pipe that output to 'head -5' to show only the first 5 lines. Option A incorrectly lists the current directory instead of the target. Options C and D have incorrect syntax for head command (should be -5, not +5).

Multiple choice general knowledge science & technology
  1. find /app/unix -mtime +30 -exec ls -lrt {} \ /tmp/user;

  2. find /app/unix -mmonth +1 -exec ls -lrt {} \;

  3. find /app/unix -mday +30 -exec ls -lrt {} \;

  4. find /app/unix -mtime +30 -exec ls -lrt {} \;

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The find command with '-mtime +30' finds files modified more than 30 days ago. The '-exec' flag allows executing a command on each found file, and 'ls -lrt' lists them with details. The escaped semicolon '\;' terminates the -exec command. Option A incorrectly includes '/tmp/user' in the command. Options B and C use non-existent flags (-mmonth, -mday).

Multiple choice general knowledge science & technology
  1. Var=${Count: -2}

  2. var=${Count: -2}

  3. var=${Count: +2}

  4. Var=${count: -2}

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In bash parameter expansion, ${Count: -2} extracts the last 2 characters from the variable. The space before -2 is required when using negative offsets to distinguish from default value syntax. Option A is wrong because 'Var' uses incorrect case. Option C uses +2 which would start from position 2, not extract the last 2. Option D uses 'count' with wrong case.