Oh BoI

Create an image depicting a digital abstract of binary code and Unix command line symbols, including elements like 0s and 1s, and terminal windows.

Binary and Unix Operations Quiz

Test your knowledge on binary representations and Unix commands with this engaging quiz! Whether you're a student, teacher, or simply a tech enthusiast, challenge yourself with ten thought-provoking questions.

Topics include:

  • Binary number systems
  • Unix command line operations
  • File linking in Linux
  • Fixed-point representation
10 Questions2 MinutesCreated by DecodingData1
Bn-1 * 2n-1 + bn-2 * 2n-2+ ... + b1 * 21 + b0 * 20 defines
Natural binary representation of non-negative integrers
Sign-magnitute representation of integrals
Floating-point representation of real numbers
Two’s complemenent representation
An 8-bit microprocessor subtracted 70H from B0H in two’s complement representation. The result and staes of flags (C-carry, V-overflow) are:
140H, C=0, V=1
40H, C=1, V=0
40H, C=1, V=1
45H, C=1, V=1
The value of -25.375 was encoded in fixed-point representation with a sign bit, 8 bits of an integer part and 7 bits of a fraction. The result is:
C30H
8C30H
CH0H
8CB0H
The value of 25.375 was encoded in fixed-point representation with a sign bit, 7 bits of an integer part and 8 bits of a fracion. The result is:
9906H
9960H
1906H
1960H
A Unix command ls –l /usr/bin 2>> ls.txt means:
List the /usr/bin directory contents, redirecting ls output to the ls.txt file
List the current directory contents, appending ls output to the ls.txt file
List the /usr/bin directory contents, redirecting ls output to the ls.txt file
List the /usr/bin directory contents, appending ls output to the ls.txt file
A Unix command ls –l /usr/bin 1> ls.txt means:
List the /usr/bin directory contents, redirecting ls output to the ls.txt file
List the current directory contents, redirecting ls output to the ls.txt file
List the /usr/bin directory contents, appending ls output to the ls.txt file
List the /usr/bin directory contents, redirecting ls error output to the ls.txt file
Links in Unix/Linux DO NOT have the property:
A hard link may represent a file outside the current filesystem
The main purpose of a hard link is naming the file or directory
When a hard link is deleted, the link is removed but the contents of the file itself continue to exist until all links to the file are deleted
A hard link may represent a directory in the current filesystem, but a user may not create it directly
Links in Unix/Linux have the property:
A hard link is a special file containing the relative path to a target file
A hard link may represent a file outside the current filesystem
When a hard link is deleted, the link is removed but the contents of the file itself continue to exist until all links to the file are deleted
A user may create a hard link to represent a directory in the current filesystem
The command: lm@arch: ~% ls /usr/bin/ | grep ‘[^e-g]grep$’
Will match the filenames in /usr/bin that end with one of the characters ‘’’, ‘e’, ‘f’, ‘g’ followed by word grep
Will match the filenames in /usr/bin that end with a character other than ‘e’, ‘f’, ‘g’ followed by word grep
Will match the filenames in /usr/bin that end with one of the characters ‘’’, ‘e’, ‘,’, ‘g’ followed by word grep
Will match the filenames in /usr/bin that contain the string [^e-g]grep$
The command: lm@arch: ~% ls /usr/bin/ | grep ‘^[cg]++’
Will match the filenames in /usr/bin that end with either c++ or g++
Will match the filenames in /usr/bin that start with either c++ or g++
Will match the filenames in /usr/bin that contain ^[cg]++$
Will match in /usr/bin the filenames c++ and g++
{"name":"Oh BoI", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge on binary representations and Unix commands with this engaging quiz! Whether you're a student, teacher, or simply a tech enthusiast, challenge yourself with ten thought-provoking questions.Topics include:Binary number systemsUnix command line operationsFile linking in LinuxFixed-point representation","img":"https:/images/course1.png"}
Powered by: Quiz Maker