DBMS using connections(Client-Data sever, two tier) Oracle/MySQL (ODBC/JDBC), SQL prompt to create data base tables insert, update data values, delete table, use table, select queries with/without where clause. ,demonstrate use of stored procedure / function (create procedure at the data side and make use of it on the client side) byAdmin •18:32 import java.sql.*; import java.util.*; public class JDBC { static String insert(){ Scanner s = new Scanner(System.in); int book_id; String book_name = null, book_author = null, book_publ=null; …
Write a python program for creating virtual file system on Linux environment. byAdmin •00:23 virtualfs.py 1: import shelve 2: import os,sys 3: fs=shelve.open('myfilesystem.fs', writeback=True) 4: current_dir=[] 5: def install(fs): 6: uname=raw_input("Enter user name : ") 7: fs[""]={&q…
Write a program in C++ to make USB Device Bootable by installing required system files byAdmin •23:52 USB.cpp
Write a program in Python/C++ to test that computer is booted with Legacy Boot ROMBIOS or UEFI. byAdmin •23:47 boot.py import os if(os.path.exists("/boot/efi")): print "System is booted with UEFI" else: print "System is booted with lagecy boot"
A program in Python/C++ to read display the i-node information for a given text file, image file. byAdmin •16:14 inode.cpp 1: #include"iostream" 2: #include"stdio.h" 3: #include"stdlib.h" 4: #include"sys/types.h" 5: #include"sys/stat.h" 6: #include"time.h" 7: using namespace s…
Write an IPC program using pipe. Process A accepts a character string and Process B inverses the string. Pipe is used to establish communication between A and B processes using Python or C++. byAdmin •23:28 1: #include"iostream" 2: #include"cstring" 3: #include"stdlib.h" 4: #include"unistd.h" 5: #include"sys/types.h" 6: using namespace std; 7: int main() 8: { 9: int fd[2]; …