

McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Computer Science Engineering (CSE) .
551. |
Which of the following is true of all Perl scripts ? |
A. | meta characters are always preceded by a forward slash |
B. | perl statements are always followed by a period |
C. | parameters must always followed by period |
D. | perl statements are always followed by a semicolon |
Answer» D. perl statements are always followed by a semicolon |
552. |
Scalar variables |
A. | include string exclusively |
B. | are defied two discrete values |
C. | are the building blocks of more complicated data structure |
D. | always operate in the same manner as variable in algebric function |
Answer» C. are the building blocks of more complicated data structure |
553. |
Which of the following expression operators increments a varibale by one ? |
A. | .. |
B. | . |
C. | ** |
D. | * |
Answer» B. . |
554. |
STDIN, or standard in, is a mechanism for |
A. | performing type conversion automatically |
B. | retrieving data from the user while a script is executing |
C. | prompting the user for specific information |
D. | outputting a string to standard out |
Answer» B. retrieving data from the user while a script is executing |
555. |
Perl is scripting language which is based on |
A. | inerpreter |
B. | compiler |
C. | assembler |
D. | all of the above |
Answer» A. inerpreter |
556. |
Perl define scalar variable by |
A. | @ |
B. | % |
C. | $ |
D. | # |
Answer» C. $ |
557. |
What is the extension of the perl file ? |
A. | .p |
B. | .pl |
C. | .perl |
D. | .pe |
Answer» B. .pl |
558. |
which is escape character in perl ? |
A. | // |
B. | ! |
C. | \\ |
D. | | |
Answer» C. \\ |
559. |
comments are placed inside a perl program file using the character |
A. | @ |
B. | % |
C. | $ |
D. | # |
Answer» D. # |
560. |
An array, in perl, is an |
A. | un-ordered list of scalar data |
B. | ordered list of scalar data |
C. | ordered list of numbers |
D. | none of the above |
Answer» B. ordered list of scalar data |
561. |
The logical operator op1 && op2 means |
A. | performs a logical not of the operand |
B. | performs a logical or of the two operands |
C. | performs a logical and of the two operands |
D. | performs alogical and then or of the two operands |
Answer» C. performs a logical and of the two operands |
562. |
Perl uses this <=> operator for |
A. | equal |
B. | comparision |
C. | less than or equal |
D. | greater than and equal |
Answer» B. comparision |
563. |
Which of the following statements is NOT TRUE statements ? |
A. | perl chomp function will not remove all whitespace characters by default |
B. | perl chomp function returns the number of characters removed |
C. | perl chomp function checks whether the last character matches the input line separator and only then it deletes it. |
D. | it deletes the last ending varibale character regardless of whatever it is. |
Answer» D. it deletes the last ending varibale character regardless of whatever it is. |
564. |
Default file accessed through a print statement in perl is |
A. | stdin |
B. | stdout |
C. | stderr |
D. | all of these |
Answer» B. stdout |
565. |
What is python ? |
A. | it is object oriented programming language |
B. | it is software package |
C. | it is intrpreter |
D. | it is assembly language |
Answer» A. it is object oriented programming language |
566. |
In python, the list L contains the following elements : ['A', 1,'1','George']. Which of the following ways of slicing would assign only the first two elements to the variable X ? |
A. | l[1:2] |
B. | x=l[0:1] |
C. | x=[l[0:2] |
D. | none of the above |
Answer» C. x=[l[0:2] |
567. |
"//" in pyhon is |
A. | floor division operator |
B. | comment |
C. | new line |
D. | none of the above |
Answer» A. floor division operator |
568. |
"**" in python is an |
A. | exponentiation |
B. | address of |
C. | value redirection |
D. | none of the above |
Answer» A. exponentiation |
569. |
In python, multi line string are given by |
A. | single quotes |
B. | double quotes |
C. | triple quotes |
D. | none of the above |
Answer» C. triple quotes |
570. |
python source code file has an extension of |
A. | pys |
B. | py |
C. | src |
D. | none of the above |
Answer» B. py |
571. |
which of the following translate and execute programe statements in sequence, instead of having separate translation and execution steps ? |
A. | procedure |
B. | interpreter |
C. | paradigm |
D. | compiler |
Answer» B. interpreter |
572. |
Which of the following procedure a true or false result ? |
A. | control structure |
B. | strong typing |
C. | data types |
D. | boolean express |
Answer» D. boolean express |
573. |
Which of the following language has an IF statement for making decision ? |
A. | perl chomp function will |
B. | c++ |
C. | python |
D. | all of these |
Answer» D. all of these |
574. |
Which of following language does not requires declarations ? |
A. | java |
B. | c++ |
C. | python |
D. | vb.net |
Answer» C. python |
575. |
Which of the following is not a valid data type in python ? |
A. | int |
B. | float |
C. | double |
D. | str |
Answer» C. double |
576. |
How do you find out what's your shell ? |
A. | echo $shell |
B. | echo $shell |
C. | echo $shell |
D. | echo shell |
Answer» A. echo $shell |
577. |
What is command to find out todays date ? |
A. | time |
B. | date |
C. | cal |
D. | cd |
Answer» B. date |
578. |
What's the command to find out users on the system ? |
A. | who |
B. | whoami |
C. | user |
D. | pwd |
Answer» A. who |
579. |
How do you find current directory you are in ? |
A. | cd |
B. | pwd |
C. | chdir |
D. | mkdir |
Answer» B. pwd |
580. |
Which variable contains current shell process id ? |
A. | $* |
B. | $? |
C. | $$ |
D. | $! |
Answer» C. $$ |
581. |
Which command is used to debug a shell script program ? |
A. | set |
B. | set -x |
C. | debug |
D. | db |
Answer» B. set -x |
582. |
How do you remove a file ? |
A. | del |
B. | rm |
C. | cd |
D. | rmdir |
Answer» B. rm |
583. |
How do you find your own username ? |
A. | who |
B. | user |
C. | whoami |
D. | root |
Answer» C. whoami |
584. |
Which of the following display content of file1 ? |
A. | cat file1 |
B. | cat > file1 |
C. | cat >> file2 |
D. | cat |
Answer» A. cat file1 |
585. |
Which of the following creates a file named file1 ? |
A. | cat file1 |
B. | cat > file1 |
C. | cat < file1 |
D. | cat |
Answer» B. cat > file1 |
586. |
What are the files attributes for executing perl programs ? |
A. | 666 |
B. | 755 |
C. | 766 |
D. | 777 |
Answer» B. 755 |
587. |
What is default administrator username ? |
A. | administrator |
B. | admin |
C. | superuser |
D. | root |
Answer» D. root |
588. |
The name of the Unix scheduling utility is |
A. | sched |
B. | cron |
C. | sc |
D. | timer |
Answer» B. cron |
589. |
Examples of repetitive tasks performed by system administrators |
A. | disk space inventories |
B. | security audits |
C. | system backups |
D. | all of the above |
Answer» D. all of the above |
590. |
Another term for shell programs is |
A. | compiled |
B. | interpreted |
C. | command processed |
D. | none of the above |
Answer» B. interpreted |
591. |
The Unix slang for " #! " is |
A. | hash-bang |
B. | shboom |
C. | shebang |
D. | more than one of the above |
Answer» D. more than one of the above |
592. |
Which of the following is not true of program variables |
A. | can be exported to the entire system |
B. | can be used only within the shell program |
C. | can hold data |
D. | all of the above |
Answer» C. can hold data |
593. |
Flow control in a shell program allows parts of a shell program to be executed |
A. | repeatedly |
B. | conditionally |
C. | all of the above |
D. | none of the above |
Answer» D. none of the above |
594. |
Shell script is preferable to other forms of programming because it |
A. | makes programming task easier |
B. | occupies less space |
C. | enhances portability |
D. | all of these |
Answer» D. all of these |
595. |
Choose the incorrect statements. |
A. | shell scripts can accept arguments |
B. | shell scipts are interp |
C. | shell scripts are interpreted |
D. | shell scripts are compiled |
Answer» D. shell scripts are compiled |
596. |
Files that store data in the same format as used in program are called |
A. | binary files |
B. | executable file |
C. | source file |
D. | core |
Answer» D. core |
597. |
Which of the following file names can be found in more than one directoy? |
A. | date |
B. | passwd |
C. | bin |
D. | both b and c |
Answer» D. both b and c |
598. |
Which one of the following options is not a shell in UNIX system? |
A. | bourne shell |
B. | c shell |
C. | net shell |
D. | korn shel |
Answer» C. net shell |
599. |
Which command is used to display the top of the file? |
A. | cat |
B. | more |
C. | head |
Answer» C. head |
600. |
Lint should be used |
A. | before compilation |
B. | after compilation |
C. | to analyze a c code |
D. | none of the above |
Answer» A. before compilation |
Done Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.