Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
117 views

1.how Many Times "Indiabix" Is Get Printed?

The document contains multiple choice questions about Linux commands and programming concepts. It tests knowledge on topics like loops, logical operators, data types, file permissions, directories, processes and navigation.

Uploaded by

neuralblue2
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views

1.how Many Times "Indiabix" Is Get Printed?

The document contains multiple choice questions about Linux commands and programming concepts. It tests knowledge on topics like loops, logical operators, data types, file permissions, directories, processes and navigation.

Uploaded by

neuralblue2
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1.How many times "IndiaBIX" is get printed?

#include<stdio.h> int main() { int x; for(x=-1; x<=10; x++) { if(x < 5) continue; else break; printf("IndiaBIX"); } return 0; }
A. C. Infinite times 0 times B. D. 11 times 10 times

2 Which of the following is not logical operator?


A. C. & || B. D. && !

3 Which of the following cannot be checked in a switch-case statement?


A. C. Character Float B. D. Integer enum

4 A char variable can store either an ASCII character or a Unicode character.


A. True B. False

5 The way the break is used to take control out of switch and continue to take control of the
beginning of the switch? A. Yes B. No

6 Which of the following statements are correct about the below program?
#include<stdio.h>
int main() { int i = 10, j = 20; if(i = 5) && if(j = 10) printf("Have a nice day"); return 0; }

A. B. C. D.

Output: Have a nice day No output Error: Expression syntax Error: Undeclared identifier if

7 Which command is used to change protection mode of files starting with the string emp and ending
with 1,2, or 3? A. B. C. D. E. chmod u+x emp[l-3] chmod 777 emp* chmod u+r ??? emp chmod 222 emp? None of the above

8 Which command is used to remove a directory?


A. B. C. D. E. rd rmdir dldir rdir None of the above

9 Which command is used to extract specific columns from the file?


A. B. C. D. E. cat cut grep paste None of the above

10 The % key allows you


A. to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace. to move the cursor to the upperleft corner of the screen to move the cursor backward to the beginning of a word to move the cursor to the first column in the current line None of the above

B. C. D. E.

11 Which command is used to display the characteristics of a process?


A. B. C. D. E. pid du ps au None of the above

12 Which command is used to terminate a process?


A. B. C. D. E. Shutdown haltsys cancel kill None of the above

13 Which of the following command is used to go to home directory?


A. B. C. D. E. cd.. cd/ cd cd HOME. None of the above

14 Which command is used to move all files to the bin sub-directory of the parent directory?
A. B. C. D. E. mv *.* /bin/ mv * /bin/* mv * ../bin mv * ../bin *.* None of the above

You might also like