February 8, 2019 Uncategorized Linux Quiz -1 Posted by Sanjay Adhikari This is a quick basic test based on Linux topics covered so far 1. Redirect output and append can be done by : > >| >> << 2. When one should use a static library ? If a particular module is not complex, It can be compiled as static(*.a) library. If a particular module is compact and is specific to application, It can be compiled as static library. If a particular module is to be used only once, It can be compiled as static library. 3. Which one of the following is incorrect statement ? Block file type is ‘b’ Directory file type is ‘d’ Soft link file type is ‘l’ Process file type is ‘p’ 4. Which of the following statements are correct ? /dev/null : null is a special device which discards the data written to it /dev/zero : It provides endless stream of ‘zero’ stat command is used to check size of disk / dev/full is used to test the application behavior on disc full 5. Which one of the following are wrong ? cwd : Current working directory rtd: Root directory REG: Register file txt: Memory mapped file 6. What are the correct statements for following command sequence? dd if=/dev/zero of=test.img bs=1024 count=102400 mke2fs test.img Create ext2 file system with random data Create file system initialized with 0 create file system named test.img The command sequence is wrong 7. Which of the following are correct ? Branch in Git is parallel version of repository Clone is online repository of Git Git always require a connection with central repository Github is a network point name 8. Which one of the following is not correct ? The static library object code is linked with the application Dynamically linked shared object libraries extension is .a Shared libraries or Dynamically linked libraries(DLL) are libraries that are loaded by programs when they start. 9. What is used to redirect commands to two objects ? tee pipe 10. Which command can tell you whether pwd is a shell built-in command or not ? cat pwd type pwd nano pwd 11. Which one is the advance package tool in linux? bitbake sudo dpkg apt 12. Which of the following are correct ? GIT is a distributed version control system Repo contains all the files associated with a project Git always require a connection with central repository Github is a network point name 13. Which one of the following is not correct ? Hardlink file names will have same inode and is connected directly to data object Softlink files will have different inode and is connected indirectly to data object Metadata of File object i.e inode Constructed after file sytem mounting Metadata of Filesystem i.e. Superblock created after file sytem mounting 14. Which one of the following is not a text editor ? vi cat vim nano 15. How to check the required shared library by a linux application named mApp? readelf -al mApp | grep NEEDED ls -lart mApp ldd mApp man mApp Loading … Question 1 of 15 Related