Computer Basic MCQs Set-7
Hello Friends,this section is specifically dedicated to those users who wants to clear the fundamental of computer science. Here we have included computer Basics multiple choice questions with answers(MCQs). Students can expect some questions from this section for sure in the respective university exams,competitive exams and interviews.So practice it well and enjoy with good score you expect.
1. PHP is the Open Source
- True
- False
PHP (Hypertext Preprocessor) is an open source server-side scripting language that is widely used for web development. It was created by Rasmus Lerdorf in 1994 and has since evolved into a powerful and flexible language with a large user community.
Being open source means that the source code of PHP is freely available for anyone to view, modify, and distribute. This allows developers from around the world to collaborate on improving the language and building useful tools and frameworks for web development.
2. _______ Determines which piece of large program need to be recompiled
- rpm
- make
- yum
- None of above
- The "make" command is commonly used to determine which piece of a large program needs to be recompiled.
- When using make, a makefile is used to define the build rules and dependencies for a project. The make utility then reads the makefile and analyzes the dependencies between files. It then decides which source files need to be recompiled based on the modification times of the source files and their dependencies.
- Make also has the ability to perform incremental builds, which means that only the files that have changed since the last build will be recompiled. This can significantly reduce build times for large projects.
- The make command is commonly used on Unix-based systems, and it is often used in conjunction with a build system or other tools to automate the build process.
3. ________Execute a command as another user
- who
- tty
- chmod
- sudo
- The "sudo" command can be used to execute a command as another user on Unix-based systems.
- Sudo allows a user with administrative privileges to execute a command as another user or as the root user. The syntax for using sudo to execute a command as another user is as follows:
- sudo -u <username> <command>
- Here,
<username>
is the username of the user that you want to execute the command as, and<command>
is the command that you want to execute. - For example, to execute the command "ls" as the user "jane", you would use the following command:
- sudo -u jane ls
- You will be prompted to enter the password of the current user (with administrative privileges) before the command is executed.
- Note that the use of sudo and the ability to execute commands as another user are controlled by the system's security policies and access controls.
4. ________ is used to install and remove packages and control downloading them from a repository in the Linux based operating system
- rpm
- who
- yum
- ls
The rpm command is used for package management on Linux-based operating systems that use the RPM (Red Hat Package Manager) package format. RPM is a package management system used by distributions such as Red Hat Enterprise Linux, CentOS, Fedora, and OpenSUSE.
The rpm command is used for installing, querying, verifying, and removing packages in the RPM format. Here are some examples of how the rpm command can be used:
- To install an RPM package, you would use the command
rpm -i <package-file.rpm>
. - To query information about an installed package, you would use the command
rpm -q <package-name>
. - To verify the integrity of an installed package, you would use the command
rpm -V <package-name>
. - To remove an installed package, you would use the command
rpm -e <package-name>
.
5. Which of the following is not flavor of linux?
- Mandrake
- SUSAN
- Redhat
- Fedora
There are many flavors of Linux, also known as Linux distributions or distros. Some of the most popular Linux distributions are:
- Ubuntu: Based on Debian, Ubuntu is one of the most popular and user-friendly Linux distributions. It has a large community and is widely used on desktops and servers.
- Debian: Known for its stability and security, Debian is a popular Linux distribution for servers and workstations.
- Red Hat Enterprise Linux (RHEL): A commercial distribution with long-term support and a focus on enterprise applications.
- CentOS: A free and open-source version of RHEL that is widely used for web hosting and server applications.
- Fedora: A community-driven Linux distribution sponsored by Red Hat that focuses on the latest software and technology.
- Arch Linux: A lightweight and flexible Linux distribution that is known for its simplicity and user-centric approach.
- openSUSE: A community-driven distribution that emphasizes ease of use and stability.
There are many other Linux distributions as well, each with its own strengths and weaknesses. The choice of which Linux distribution to use depends on factors such as your needs, technical expertise, and personal preferences.
6. 7-zip is ___________
- File achiever
- Web browser
- Editor
- None of above
- 7-Zip is a free and open-source file archiver and compression software that can be used to compress and decompress files in a variety of formats.
- 7-Zip supports a wide range of compression formats, including its own 7z format, as well as ZIP, GZIP, BZIP2, TAR, and others. It also has the ability to create self-extracting archives and supports strong AES-256 encryption for secure archiving.
- In addition to its archiving and compression capabilities, 7-Zip can also be used to view and extract files from ISO and other disk image formats. It has a simple and easy-to-use interface, and is available for Windows, Linux, and macOS operating systems.
- Overall, 7-Zip is a powerful and versatile tool for working with compressed files, and is a popular alternative to other file archiving and compression software such as WinZip and WinRAR.
7. Ubuntu is windows based
- True
- False
Ubuntu is a popular open-source Linux distribution based on the Debian architecture. It was created by Canonical Ltd. and is widely used on desktops, laptops, servers, and cloud computing platforms.
8. ________ is HTTP web server
- Lucene
- Fedora
- Perl
- Apache
There are several HTTP web servers available, but some of the most popular ones are:
- Apache HTTP Server: Apache is a widely used open-source web server that has been in use since 1995. It supports multiple platforms, including Linux, Windows, and macOS.
- Nginx: Nginx is a high-performance open-source web server that has gained popularity in recent years. It is known for its ability to handle high levels of concurrent connections and can be used as a load balancer or reverse proxy.
- Microsoft IIS: Microsoft Internet Information Services (IIS) is a web server that is included with Windows Server operating systems. It supports the .NET framework and other Microsoft technologies.
- Lighttpd: Lighttpd is a lightweight open-source web server that is designed for speed and efficiency. It is often used for serving static content and can be used as a reverse proxy.
- Caddy: Caddy is a modern open-source web server that is known for its simplicity and ease of use. It supports HTTPS encryption by default and can be used as a reverse proxy.
Each of these web servers has its own strengths and weaknesses, and the choice of which one to use depends on factors such as performance, features, and compatibility with your specific use case.
9. Symbian is valid Linux Based Shell
- True
- False
- Symbian is not a Linux-based shell. It is a mobile operating system (OS) developed by Symbian Ltd., which was later acquired by Nokia.
- While Symbian OS is not based on Linux, it is an open-source operating system that was designed for use in mobile devices, such as smartphones and feature phones. It was one of the most widely used mobile operating systems in the early 2000s, particularly in Europe and Asia, before being largely superseded by iOS and Android.
- Symbian OS used its own shell and user interface, which were designed specifically for mobile devices. It had a number of features that were innovative for the time, such as support for multitasking, 3G connectivity, and mobile web browsing.
- While Symbian OS is no longer widely used, it played an important role in the development of mobile operating systems and helped pave the way for the development of modern mobile platforms.
10. Following is valid Linux based Shell
- C-shell
- D-shell
- K-shell
- None of above
Tcsh (TENEX C Shell): Tcsh is a Unix shell that is based on the C shell (csh). It has many advanced features, such as job control and command-line editing, and is popular among Unix power users.
There are several valid Linux-based shells available, but some of the most popular ones are:
- Bash (Bourne-Again SHell): Bash is the default shell for most Linux distributions and is also used on macOS and other Unix-based systems. It is a powerful and versatile shell that supports command-line editing, history, and programmable completion.
- Zsh (Z Shell): Zsh is a Unix shell that is designed to be more user-friendly and customizable than Bash. It has many advanced features, such as context-sensitive completion and spelling correction.
- Fish (Friendly Interactive SHell): Fish is a user-friendly shell that is designed to be easy to use for both beginners and advanced users. It has a powerful scripting language and supports features such as syntax highlighting and autosuggestions.Ksh (Korn Shell): Ksh is a Unix shell that is compatible with the Bourne shell (sh) and is used on many Unix-based systems. It has many advanced features, such as job control and command-line editing, and is often used by system administrators.
Each of these shells has its own strengths and weaknesses, and the choice of which one to use depends on factors such as personal preference, compatibility with other tools, and the specific requirements of your workflow.