Explore topic-wise MCQs in Master of Computer Applications (MCA).

This section includes 25 Mcqs, each offering curated multiple-choice questions to sharpen your Master of Computer Applications (MCA) knowledge and support exam preparation. Choose a topic below to get started.

1.

Which program is used to schedule particular jobs or programs at particular times on the system?

A. vi
B. Outlook
C. Scheduler
D. cron
Answer» E.
2.

What will be printed for the command below? $ grep c ^echo abc

A. The count of lines that do not contain the pattern echo in file abc
B. The count of lines which begin with the pattern echo in file abc
C. The count of lines that ends with the pattern echo in file abc
D. None of the above
Answer» C. The count of lines that ends with the pattern echo in file abc
3.

If you are a root user, how can you grand execute permission only for the owner of the file project1?

A. chmod +x project1
B. chmod u+x project1
C. chmod a+x project1
D. chmod U+X project1
Answer» C. chmod a+x project1
4.

Which commands will give you information about how much disk space each file in the current directory uses?

A. ls -l
B. ls -la
C. du
D. ls -a
Answer» D. ls -a
5.

In which directory can you store system user default files used for creating user directories?

A. /usr/tmp
B. /etc/default
C. /etc/skel
D. /etc/users
Answer» D. /etc/users
6.

Which command is used to make all files and sub-directories in the directory (prog) executable by all users?

A. chmod R a+xprogs
B. chmod x a+xprogs
C. chmod -1 a+xprogs
D. chmod R 222 progs
Answer» B. chmod x a+xprogs
7.

Which among the following is used to write small programs to control Unix functionalities?

A. Shell Commands
B. Shell Script
C. Filters
D. C Language
Answer» C. Filters
8.

Given the command $ chmod o-w datafile

A. sets write permission to everyone for datafile
B. sets write permission to others for datafile
C. clears write permission to everyone for datafile
D. clears write permission to others for datafile
Answer» E.
9.

Which command generates possible completions for string according to the and write it to standard output?

A. compgen
B. complete
C. continue
D. none of the mentioned
Answer» B. complete
10.

A user executes the following command successfully: $ chmod +x file1.txt Which of the following is true of the output of this command?

A. The command results in adding execute permission to the user who ran this command
B. The command results in adding execute permission for the owner of the file
C. The command results in an error since the file is not an executable file
D. The command results in adding execute permission for all users (i.e., user,group & others)
Answer» E.
11.

who cut d -f1 what is the ouput if the who command displays like this user1 tty 0 1234

A. user1
B. user1 tty 0 1234
C. tty
D. tty 0 1234
Answer» B. user1 tty 0 1234
12.

What command is used to count the total number of lines, words, and characters contained in a file?

A. countw
B. wcount
C. wc
D. count p
Answer» D. count p
13.

The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is

A. tee
B. sort
C. tr
D. grep
Answer» D. grep
14.

What TCP/IP protocol is used for file transfer with minimal capability and minimal overhead?

A. TELNET
B. TFTP
C. FTP
D. RARP
Answer» C. FTP
15.

Which class network is used for a collection of a small number of networks with a large number of nodes?

A. Class A
B. Class B
C. Class C
D. All of the above
Answer» B. Class B
16.

Which option of the command cd use the actual filesystem path for cd..and the value of pwd?

A. -l
B. -L
C. -p
D. -P
Answer» E.
17.

Which command is used to select those lines where the data lies between 7000 and 7999 at the end of the line of file empl.lit.

A. grep $7 empl.1st
B. grep 7 ^ empl.1st
C. grep 7 $ empl.1st
D. grep ^7 empl.1st
Answer» D. grep ^7 empl.1st
18.

Which of the following commands is used to count just the number of lines contained in a file?

A. wc 1
B. wc - w
C. wc - c
D. wc - r
Answer» B. wc - w
19.

Which of the following commands is used to count the total number of line, words and characters contained in a file?

A. count p
B. wcount
C. wc
D. countw
Answer» D. countw
20.

Which of the following commands will allow the user to search contents of a file for a particular pattern

A. touch
B. grep
C. find
D. ls
Answer» C. find
21.

What command is used to save the standard output in a file, as well as display it on the terminal?

A. tee
B. grep
C. cat
D. more
Answer» B. grep
22.

Which command is used to concatenate all files beginning with the string emp and followed by non-numeric characters?

A. catemp{!0-9]
B. more [emp][!0-9]
C. cateemp[x-z]
D. catemp[a-z]
Answer» B. more [emp][!0-9]
23.

One of the entry of /etc/passwd file is shown below: user1:x:1111:2222:McqMate:/home/user1:/bin/bash Which among the following will print userid and home dir in the following pattern user1:/home/user1

A. awk `{print $1 : $6}` /etc/passwd
B. awk `{print $1 : $7}` /etc/passwd
C. awk `{print $2 : $6}` /etc/passwd
D. awk `{print $2 : $7}` /etc/passwd
Answer» B. awk `{print $1 : $7}` /etc/passwd
24.

Which of the following commands can be used to change default permissions for files and directories at the time of creation

A. Chmod
B. Chown
C. Umask
D. Chgrp
Answer» D. Chgrp
25.

Which command is used to display all the files including hidden files in your current and its subdirectories ?

A. ls aR
B. ls a
C. ls R
D. ls l
Answer» B. ls a