CBSE Class 11 Computer Science Advanced Scripting MCQs

Refer to CBSE Class 11 Computer Science Advanced Scripting MCQs provided below available for download in Pdf. The MCQ Questions for Class 11 Computer Science with answers are aligned as per the latest syllabus and exam pattern suggested by CBSE, NCERT and KVS. Multiple Choice Questions for Advanced Scripting are an important part of exams for Class 11 Computer Science and if practiced properly can help you to improve your understanding and get higher marks. Refer to more Chapter-wise MCQs for CBSE Class 11 Computer Science and also download more latest study material for all subjects

MCQ for Class 11 Computer Science Advanced Scripting

Class 11 Computer Science students should refer to the following multiple-choice questions with answers for Advanced Scripting in Class 11.

Advanced Scripting MCQ Questions Class 11 Computer Science with Answers

 

Question : _______ is a program loaded into memory and running.

a) Shell Script

b) Command

c) PID

d) Process

Answer : D

 

Question : Each process when started has a unique number associated with it known as ...........

a) Shell Script

b) Command

c) PID

d) Process

Answer : C

 

Question : Process can be _______

a) Viewed

b) Stopped

c) Running (executing)

d) All of these

Answer : D

 

Question : In Linux all programs are executed as ______ .

a) Shell Script

b) Variables

c) Loop

d) Process

Answer : D

 

Question : Which command is used To see the processes associated with the current shell ?

a) ps command without any parameters

b) ps command with any parameters

c) sp command with parameters

d) sp command without parameters

Answer : A

 

Question : Which command is used to view the process of all the users ?

a) ps -ef

b) ps -e

c) ps -f

d) ps -fe

Answer : A

 

Question : In ps -ef , UID is _______ .

a) A unique numeric process identifier assigned to each process

b) Name or number of the user who owns the process

c) Identifies the parent process id, the process that created the current process

d) None of these

Answer : A

 

Question : In ps -ef ,PID is ________ .

a) A unique numeric process identifier assigned to each process

b) Name or number of the user who owns the process

c) Identifies the parent process id, the process that created the current process

d) All of these

Answer : A

 

Question : In ps -ef ,PPID is _______ .

a) A unique numeric process identifier assigned to each process

b) Name or number of the user who owns the process

c) Identifies the parent process id the process that created the current process

d) None of these

Answer : C

 

Question : In ps -ef ,STIME is ______

a) The start time for the current process

b) Identifies the amount of CPU accumulated by the current process

c) Identifies the parent process id, process that created the current pro

d) All of these

Answer : A

 

Question : In ps -ef ,TTY is _______

a) The start time for the current process

b) Identifies the terminal that controls current process

c) Identifies the parent process id, process that created the current process

d) Identifies the command used to invoke process.

Answer : B

 

Question : In ps -ef ,TIME is ________

a) The start time for the current process

b) Identifies the amount of CPU accumulated by the current process

c) Identifies the parent process id, process that created the current proc

d) None of these

Answer : B

 

Question : In ps -ef ,CMD is ______

a) The start time for the current process

b) Identifies the terminal that controls current process

c) Identifies the parent process id, process that created the current process

d) Identifies the command used to invoke process

Answer :C

 

Question : In ps -ef, ____ is the name or number of the user who owns the process.

a) PPID

b) PID

c) UID

d) TTY

Answer : C

 

Question : In ps -ef,_____is a unique numeric process identifier assigned to each process.

a) PPID

b) PID

c) UID

d) TTY

Answer : B

 

Question : In ps -ef, ____ is the start time for current process.

a) PPID

b) TTY

c) STIME

d) TIME

Answer : B

 

Question : The if-then-elif-then-else-if statement looks clumsy as number of comparison grows.

a) True

b) False

c) None of these

d) Both (A) and (B)

Answer : A

 

Question : When number of comparison (condition) grows it is advisable to use _______.

a) If-elseif-else-if

b) If - else-if

c) Case - esac

d) While loop

Answer : C

 

Question : In ps -ef, ________ identifies the parent process id, the process that created the current process.

a) PPID

b) PID

c) UID

d) TTY

Answer : B

 

Question : All the statements written within the section of case are executed till two ________ are encountered.

a) Semicolons (;;)

b) Colons (::)

c) Full stops(..)

d) Commas(„)

Answer : A

 

Question : All the statements written within the section of case are executed till ______ semicolon(s) are encountered.

a) Four

b) Three

c) Two

d) One

Answer : C

 

Question : Once semicolons are encountered in case construct the control is transferred to the _______.

a) Next section of the case statement

b) Section of the case statement

c) Line before the end of the case statement

d) Line after the end of the case statement

Answer : D

 

Question : Once _______ are encountered in case construct the control is transferred to the line after the end of the case statement.

a) Semicolons (;;)

b) Colons (::)

c) Full stops(..)

d) Commas(„)

Answer : A

 

Question : The end of case statement is specified by ________ keyword.

a) case

b) esac

c) asec

d) esca

Answer : B

 

Question : If user enters any value that does not match any of the case value specified, then the control is transferred to the section that has ________ as its value.

a) asterisks (**)

b) semicolons (;;)

c) commas^,)

d) asterisk (*)

Answer : D

 

Question : We can assign______value to the variable that accepts the choice in case construct.

a) Numeric

b) Character

c) String

d) All of these

Answer : D

 

Question : In case we assign string values then within the case it should be enclosed between.........

a) Colon

b) Comma

c) Double quote

d) Single quote

Answer : D

 

Question : The ______ test is performed using relational operators.

a) Numerical

b) Logical

c) File

d) All of these

Answer : A

 

Question : The options _______ refers to relational operators.

a) -ge

b) ge

c) greater than

d) all of these

Answer : A

 

Question : Relational operators are used to compare values of_______ numeric operands.

a) One

b) Two

c) Three

d) Any of these

Answer : B

 

Question : _________ operators are used to compare values of two numeric operands.

a) Relational

b) Logical

c) File

d) All of these

Answer : A

 

Question : The options_______ refers to relational operators.

a) -gt

b) -le

c) -ne

d) All of these

Answer : D

 

Question : _______ operators are used to compare values of two numeric operands.

a) Relational

b) Logical

c) File

d) All of these

Answer : A

 

Question : ______ is used as"greater than" operator.

a) -gt

b) ge

c) greater than

d) -ge

Answer : -A

 

Question : _______ is used as"greater than equal to" operator.

a) -ge

b) gt

c) greater than equal to

d) -gt

Answer : A

 

Question : ______ is used as "less than equal to" operator.

a) -le

b) It

c) less than equal to

d) -It

Answer : A

 

Question : _______ is used as "less than" operator.

a) -It

b) le

c) Less than

d) -le

Answer : A

 

Question : _______ is used as "not equal to" operator.

a) -ne

b) =

c) not equal to

d) !=

Answer : A

 

Question : ________ is used as " equal to" operator.

a) -eq

b) =

c) equal to

d) ==

Answer : A

 

Question : To combine conditions we make use of _______ operators.

a) Numerical

b) Logical

c) File

d) All of these

Answer : B

 

Question : The _______ test is performed using logical operators

a) Numerical

b) Logical

c) File

d) All of these

Answer : B

 

Question : _______ is used as "AND" operator.

a) -a

b) a

c) and

d) -ae

Answer : A

 

Question : ______ is used as "OR" operator.

a) -eo

b) o

c) or

d) -o

Answer : D

 

Question : Minimum conditions that can be combined using -a operator in Ubuntu are _______.

a) One

b) Two

c) Three

d) Any of these

Answer : B

 

Question : _______ is used as "NOT" operator.

a) -not

b) not

c) !=

d) !

Answer : D

 

Question : Minimum conditions that can be combined using -o operator in Ubuntu are ______.

a) One

b) Two

c) Three

d) Any of these

Answer : B

 

Question : Minimum conditions that can be combined using ! operator in Ubuntu are _______.

a) One

b) Two

c) Three

d) Any of these

Answer : A

 

Question : ______ operator is True if both conditions are true, false otherwise.

a) -a

b) -o

c) !

d) -or

Answer : A

 

Question : _______ operator is True if any one condition is true, false only if both conditions are false.

a) -a

b) -o

c) !

d) -or

Answer : B

 

Question : ______ operator converts true to false and vice versa.

a) -a

b) -o

c) !

d) -or

Answer : C

 

Question : ______ operators allows to check the status of a file.

a) Relational

b) Logical

c) File

d) All of these

Answer : C

 

Question : By using _____operators we can come to know whether a specified name is an ordinary file or a directory.

a) Relational

b) Logical

c) File

d) All of these

Answer : C

 

Question : _______ operators are used to find out the status of file permissions using them.

a) Relational

b) Logical

c) File

d) All of these

Answer : C

 

Question : _________ condition tested using file operators is True if a file with the specified name exists and has size greater than 0.

a) -r name

b) -d name

c) -s name

d) -f name

Answer : C

 

Question : condition tested using file operators is True if a file with the specified name exists and is not a directory.

a) -r name

b) -d name

c) -s name

d) -f name

Answer : D

 

Question : ______ condition tested using file operators is True if a directory with the specified name exists

a) -r name

b) -d name

c) -s name

d) -f name

Answer : B

 

Question : ______ condition tested using file operators is True if a file with the specified name exists and the user has read permission on it.

a) -r name

b) -w name

c) -s name

d) -x name

Answer : D

 

Question : ________ condition tested using file operators is True if a file with the specified name exists and the user has write permission on it.

a) -r name

b) -w name

c) -s name

d) -x name

Answer : -B

 

Question : ________ condition tested using file operators is True if a file with the specified name exists and the user has execute permission on it.

a) -r name

b) -w name

c) -s name

d) -x name

Answer : D

 

Question : How many decision making instructions are available in Linux which can be used in shell script ?

a) One

b) Two

c) Three

d) Four

Answer : D

 

Question : Which decision making instructions are available in Linux which can be used in shell script ?

a) if-then-fi

b) if-then-else if-then-else-fi

c) case-esac

d) All of these

Answer : D

 

Question : If student has greater than 35 percentage display "Result: Pass". When we want to write a shell script for above task which decision making instructions will be used ?

a) if-then-fi

b) if-then -el if-then-else-fi

c) case-esac

d) if-then-else-fi

Answer : A

 

Question : The if statement of Linux is concerned with the ______ status of a test expression.

a) Exit

b) Append

c) Delete

d) All of these

Answer : A

 

Question : The exit status of command is _____ if it has been executed successfully.

a) Zero

b) One

c) Two

d) None of these

Answer : A

 

Question : The ______ status in if statement indicates whether the command was successfully executed or not.

a) Exit

b) Append

c) Delete

d) All of these

Answer : A

 

Question : The exit status of command is_______ if it has been not executed successfully.

a) Zero

b) One

c) Two

d) None of these

Answer : B

 

Question : The condition in the shell script is enclosed in a _______ .

a) Parenthesis

b) Angular bracket

c) Curly bracket

d) Square bracket

Answer : D

 

Question : There should be _________ space after opening square bracket and one before closing square bracket in if condition statement.

a) Zero

b) One

c) Two

d) None of these

Answer : B

 

Question : If the condition of if statement is evaluated to________ then statements typed inside then block will be executed.

a) True

b) False

c) Both (A) and (B)

d) None of these

Answer : A

 

Question : If the condition of if statement is evaluated to______ then statements typed inside then block will be not be executed.

a) True

b) False

c) Both (A) and (B)

d) None of these

Answer : B

 

Question : If the condition of if statement is evaluated to ________ then statements typed after if will be executed.

a) True

b) False

c) Both (A) and (B)

d) None of these

Answer : B

 

Question : The end of the if statement is indicated by ______ statement.

a) if

b) else if

c) end if

d) else

Answer : B

 

Question : If student has greater than 35 percentage display "Result : Pass" otherwise display "Result : Fail". When we want to write a shell script for above task which decision making instructions will be used ?

a) if-then-fi

b) if-then-else-if-then-else-fi

c) case-esac

d) if-then-else-fi

Answer : D

 

Question : _____ command is used to compares two files.

a) cmp

b) cp

c) compare

d) verify

Answer : A

 

Question : ________ command is used in place of brackets in if statement.

a) Test

b) cp

c) cmp

d) fi

Answer : A

 

Question : Process can be _______

a) Viewed

b) Stopped

c) Running (executing)

d) All of these

Answer : D

 

Question : Which command is used To see the processes associated with the current shell ?

a) ps command without any parameters

b) ps command with any parameters

c) sp command with parameters

d) command without parameters

Answer : A

 

Question : The ________ command is used to display long listed details of files and directories.

a) Is -1

b) Is -v

c) Is -r

d) Is -f

Answer : A

 

Question : Which command is used to view the process of all the users ?

a) ps -ef

b) ps -e

c) ps -f

d) ps -fe

Answer : A

 

Question : In Linux all programs are executed as ________.

a) Shell Script

b) Variables

c) Loop

d) Process

Answer : D

MCQs for Advanced Scripting Computer Science Class 11

Expert teachers of studiestoday have referred to NCERT book for Class 11 Computer Science to develop the Computer Science Class 11 MCQs. If you download MCQs with answers for the above chapter you will get higher and better marks in Class 11 test and exams in the current year as you will be able to have stronger understanding of all concepts. Daily Multiple Choice Questions practice of Computer Science will help students to have stronger understanding of all concepts and also make them expert on all critical topics. After solving the questions given in the MCQs which have been developed as per latest books also refer to the NCERT solutions for Class 11 Computer Science. We have also provided lot of MCQ questions for Class 11 Computer Science so that you can solve questions relating to all topics given in each chapter. After solving these you should also refer to Class 11 Computer Science MCQ Test for the same chapter.

Where can I download latest CBSE MCQs for Class 11 Computer Science Advanced Scripting

You can download the CBSE MCQs for Class 11 Computer Science Advanced Scripting for latest session from StudiesToday.com

Are the Class 11 Computer Science Advanced Scripting MCQs available for the latest session

Yes, the MCQs issued by CBSE for Class 11 Computer Science Advanced Scripting have been made available here for latest academic session

Where can I find CBSE Class 11 Computer Science Advanced Scripting MCQs online?

You can find CBSE Class 11 Computer Science Advanced Scripting MCQs on educational websites like studiestoday.com, online tutoring platforms, and in sample question papers provided on this website.

How can I prepare for Advanced Scripting Class 11 MCQs?

To prepare for Advanced Scripting MCQs, refer to the concepts links provided by our teachers and download sample papers for free.

Are there any online resources for CBSE Class 11 Computer Science Advanced Scripting?

Yes, there are many online resources that we have provided on studiestoday.com available such as practice worksheets, question papers, and online tests for learning MCQs for Class 11 Computer Science Advanced Scripting