This document contains multiple choice and essay questions about embedded Linux on ARM 9 and Python. The questions cover topics such as Linux system calls, file systems, process management, GCC commands, Makefiles, Python data types, operators, modules, and control flow statements. There are also questions about pipes, message queues, dictionaries, lists, and implementing a calculator program in Python.
This document contains multiple choice and essay questions about embedded Linux on ARM 9 and Python. The questions cover topics such as Linux system calls, file systems, process management, GCC commands, Makefiles, Python data types, operators, modules, and control flow statements. There are also questions about pipes, message queues, dictionaries, lists, and implementing a calculator program in Python.
This document contains multiple choice and essay questions about embedded Linux on ARM 9 and Python. The questions cover topics such as Linux system calls, file systems, process management, GCC commands, Makefiles, Python data types, operators, modules, and control flow statements. There are also questions about pipes, message queues, dictionaries, lists, and implementing a calculator program in Python.
This document contains multiple choice and essay questions about embedded Linux on ARM 9 and Python. The questions cover topics such as Linux system calls, file systems, process management, GCC commands, Makefiles, Python data types, operators, modules, and control flow statements. There are also questions about pipes, message queues, dictionaries, lists, and implementing a calculator program in Python.
Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 3
EMBEDDED LINUX ON ARM 9 & PYTHON
Multiple choice questions
1) Gcc –c myprog.c will create the a) Pre processor file b) Assembly file c) Object file d) Library file 2) What is the output of following command? $gcc –E myprog.c >file1 a) Error description of the command will moved to file1 b) Object file is moved to the file1 c) Preprocessor output file will moved to the file1 d) None of these 3) Which symbol is user to create comment in Make file? a) // b) % c) $ d) # 4) From the below which interface is not a part of Linux kernel? a) System call interface b) Process management c) BIOS management system d) Memory management e) Virtual file system 5) Which is exceptional in this group? a) open() b) creat() c) fork() d) write() e) read() 6) The system call exit () is a) a File system related system call b) a Process related system call c) A Input/output system call d) Not a system call 7) What is the return value of fork in a child process? a) Process id of child process b) 0 c) -1 d) Any positive integer 8) What is called as named pipe? a) PIPE system call it self b) FIFO c) Message Queue d) Shared memory 9) Which key will generate SIGINIT signal a) ^c b) ^z c) ^\ d) Esc
10) Which is the process with process id 1?
a) Kernel b) Init c) Boot process d) Any orphan process 11) The first sector of an HDD called a) DBR b) Primary drive c) Landing zone d) MBR Enable support for the Kernighan and Ritchie C syntax __________________________________________________________________________ FILL IN THE BLANKS 1. The statement similar to NULL operation in python is _____. 2.______ returns control to beginning of while loop. 3. Function that returns current cursor position is___. 4. To read a line from standard input and to return it as a string _____ function is used. 5. C+=a implies_____. 6. The floor division operator is_____. 7. The data type of count=10 is____. 8. The membership operators in python are_____. 9. Blocks of codes are denoted by __________. 10.______ is a standard data type in python. ____________________________________________________________________________ Answer the following (4 marks each) 1. Write a short note on pipes 2. Explain about message queue mechanism 3. What is a make file? 4. Explain dictionary in PYTHON. 5. Explain PYTHON membership operators. 6. What are BREAK & CONTINUE statements? 7. How do you import modules in PYTHON? 8. Explain list in PYTHON. 9. Briefly explain comparison operators in PYTHON. 10. What is a file system? 11. Define the system call wait () and open() ? 12. Define a shell ________________________________________________________________________ Essay type question 1. Explain the standard datatypes in PYTHON. 2. Explain various operators in PYTHON 3. Explain any 10 file I/O functions in PYTHON. 4. Briefly explain any 3 conditional statements in PTYHON. 5. Implement a calculator in PYTHON. 6. Explain different kernel architectures with block diagram.