Intrebari Sita PDF
Document Details
Uploaded by QuieterPointillism
Technical University of Cluj-Napoca
Tags
Related
- dokumen.pub_parallel-programming-techniques-and-applications-using-networked-workstations-and-parallel-computers-2nd-ed-0131405632-9780131405639.pdf
- Parallel Architectures PDF
- COMP 3730 Intro to Parallel Programming Fall 2024 Lecture 1 PDF
- COMP 426 Lecture Notes PDF
- Parallel Programming PDF
- Parallel Programming Lectures PDF
Summary
This document contains questions related to computer science, specifically covering parallel ports, USB connections, and low-level computer hardware. The questions are likely from a past paper. The provided text does not contain detailed exam board information or specific year details.
Full Transcript
Intrebari Sita 1. Pe portul parallel, datele se transfera prin: A. Linii de control B. Linii de date C. Linii de status 2. Aceste linii sunt conectate la registrii de date, status si control: A. virtuale B. interne C. externe 3. Registrii sunt ________ conectati la linii...
Intrebari Sita 1. Pe portul parallel, datele se transfera prin: A. Linii de control B. Linii de date C. Linii de status 2. Aceste linii sunt conectate la registrii de date, status si control: A. virtuale B. interne C. externe 3. Registrii sunt ________ conectati la liniile corespunzatoare. A. virtual B. intern C. extern 4. Adresa de baza a lui LPT1 este: A. 0x178 B. 0x278 C. 0x378 5. ADRESA DE BAZA A LUI LPT2 ESTE 0X278 6. Registrul de date se afla la adresa de baza(+0), Registrul de control se afla la adresa de baza + _____, iar registrul de status se afla la adresa de baza + 1 A. 0 B. 1 C. 2 7. Inainte de a accesa orice port paralel, trebuie sa oferi programului permisiune prin apelarea functiei _____ A. Unistd.h B. kernel C. ioperm() 8. Rutina pentru a accesa porturile I/O ale unui port parallel este: A. in /usr/include/asm/io.h B. in /usr/include/io/asm.h C. in linux/include/asm-i386/io.h in the kernel source distribution 9. Seteaza semnalele de date (D0-7) ale unui port toate low(0): A. outb(0, BASEPORT): B. outb(0, BASEPORT+1): C. outb(0, BASEPORT+2): 10. Define BASEPORT A. #define BASEPORT 0x178 B. #define BASEPORT 0x278 C. #define BASEPORT 0x378 11. Primeste access la port A. Ioperm(BASEPORT, 1, 3) B. Ioperm(BASEPORT, 2, 2) C. Ioperm(BASEPORT, 3, 1) 12. INchide porturile A. Ioperm(BASEPORT, 1, 0) B. Ioperm(BASEPORT, 2, 0) C. Ioperm(BASEPORT, 3, 0) 13. Citeste din portul de status (BASE+1) si afiseaza rezultatul A. Printf(“status: %d\n”, inb(BASEPORT+1)); B. Printf(“status: %d\n”, inb(BASEPORT+2)); C. Printf(“status: %d\n”, inb(BASEPORT+3)); 14. Specificatiile electrice ale unui port sunt continue de EIA (Electronics Industry Association) RS232C standard. Parametrii sunt: A. Logic 0 – will be between -3 and -25 Volts Logic 1 – will be between +3 and +25 Volts The region between + 3 and -3 volts is undefined B. Logic 0 – will be between +3 and +25 Volts Logic 1 – will be between -3 and -25 Volts The region between + 3 and -3 volts is undefined C. Logic 0 – will be between +3 and -25 Volts Logic 1 – will be between -3 and +25 Volts The region between + 3 and -3 volts is undefined 14. Pinul numarul 6 ale unui male RS232 DB25 connector reprezinta A. Request To Send (RTS) Outgoing flow control signal controlled by DTE B. Data Terminal Ready (DTR) Outgoing handshaking signal controlled by DTE C. Data Set Ready (DSR) incoming handshaking signal controlled by DCE 15.. Pinul numarul 6 ale unui male RS232 DB9 connector reprezinta A. Request To Send (RTS) Outgoing flow control signal controlled by DTE B. Data Terminal Ready (DTR) Outgoing handshaking signal controlled by DTE C. Data Set Ready (DSR) incoming handshaking signal controlled by DCE 16. Portul standard de adresa COM1 este A. Address 3E8, IRQ 4 B. Address 3F8, IRQ 4 C. Address 2F8, IRQ 3 17. In tabelul registrilor, Base Address + 7 reprezinta A. Modern status register B. Line status register C. Scratch register 18. In registrul intreruperilor active, Bit 5 reprezinta A. Enable Receiver Line Status Interrupt B. Enables low power mode (16750) C. Enables sleep mode (16750) 19. In registrul de identificare a intreruperilor, Bit 5 reprezinta A. Reserved on 8250, 16450 B. 16550 Time-Out Interrupt Pending C. 64 Byte Fifo Enabled (16750) 20. In registrul de control FIFO, Bit 5 represents: A. Clear Transmit FIFO B. Clear Receive FIFO C. 64 Byte Fifo Enabled (16750 only) 21. In registrul liniilor de control, Bit 6 represents: A. Length of Stop Bit B. Set Break Enable C. Divisor Latch Access Bit 22. Rutina pentru a accesa porturile I/O a unui port serial este A. In /usr/include/io/asm.h B. In /usr/include/asm/io.h C. Linux/include/asm-i386/i0.h in the kernel source distribution 23. Inainte de a accesa un port serial, trebuie sa ii permiti access programului, apeland functia ______ A. Unistd.h B. kernel C. ioperm() 24. Define Serial Ports Base Address A. #define port 0x1F8 B. #define port 0x2F8 C. #define port 0x3F8 25. Opreste intreruperile in Port1 A. Outb(0, port+1) B. Outb(0, port+2) C. Outb(0, port+3) 26. Set Baud Rate – Divisor Latch Low Byte = 57.600 BPS A. Outb(0x01, port+0) B. Outb(0x02, port+0) C. Outb(0x03, port+0) 27. Set Baud Rate – Divisor Latch High Byte A. Outb(0x00, port+1) B. Outb(0x00, port+2) C. Outb(0x00, port+3) 28. Registrul de control FIFO A. Outb(0xc7, port+1) B. Outb(0xc7, port+2)-----POZA MAI SUS C. Outb(0xc7, port+3) 29. Porneste DTR, RTS and OUT2: A. Outb(0x0B, port+1) B. Outb(0x0B, port+2) C. Outb(0x0B, port+3) D. Outb(0x0B, port+4)-----POZA MAI SUS 30. Send Char to Serial Port A. Outb(char, port) B. Outb(wchar_t, port) C. Outb(c, port)-----POZA MAI SUS 31. Pin 3 of the USB 1.x/2.0 cable represents A. D-Data- B. VCC +5V C. D+ Data+ D. GND Ground 32. USB communication takes the form of packets. The first byte is a packet identifier (PID) byte. The PID is actually: A. 1 bit B. 2 bits C. 3 bits D. 4 bits 33. Communication on the USB network can use any one of four different data transfer types. Data packets that are polled periodically are: A. Isochronous transfers B. Bulk transfers C. Control transfers D. Interrupt transfers 34. Like a serial port, each USB port on a computer is assigned a _____ (port ID) by the USB controller A. number B. identification number C. unique identification number 35. When a USB device is attached to a USB port, this unique port ID is assigned to the device and the _____ is read by the USB controller A. device B. device encriptor C. device descriptor 36. A configuration defines the functionality and I/O behavior of a USB device. A USB device may have: A. one configuration B. two configurations C. one or more configurations 37. Each configuration has ____, which can be considered as a physical communication channel. A. one interface B. two interfaces C. one or more interfaces 38. Each interface has ____, which can be either data providers or data consumers, or both A. one endpoint B. two endpoints C. one or more endpoints D. zero or more endpoints 39. The descriptor class in JUSB A. Provides access to a USB device descriptor B. Provides access to a USB device C. Is Base class for entities with USB typed descriptors 40. In the JSR-80 APIs UsbInterfaceDescriptor represents: A. Descriptor for a USB interface B. Interface for a USB interface C. Interface for a USB interface descriptor 41. The MVC architecture offers some distinct advantages for AWT including A. Capability to replace the user interface with one that is custom designed for an applcation B. Capability to replace the data model with one that is custom designed for an application C. Redesign the user interface for individual components as required D. Redesign the data model for individual components as required 42. The model component of the MVC A. Data for each component B. State data for each component C. Control data for each component 43. The model component of the MVC A. Similar for one component B. Similar for each component C. Different for each component 44. Model data is ____ independent of visual representation A. not B. always 45. View component of the MVC A. How component react on the screen B. How component connect on the screen C. How component is painted on the screen---poza mai sus 46. View component of the MVC A. Can vary between platforms/look and feel B. Is similar on platforms/look and feel C. Is similar between platforms/looks and feel 47. Controller component of the MVC A. Dictates how component interacts with events B. Dictates how component interacts after events C. Dictates how component interacts between events 48. Controller component of the MVC A. Many forms of events – mouse clicks, keyboard, focus, repaint B. Simple forms of events – mouse clicks, keyboard, focus, repaint C. Complex forms of events – mouse clicks, keyboard, focus, repaint 49. Swing actually makes use of a simplified variant of the MVC design called the A. model B. delegate C. model-delegate 50. The design combines the view and the controller object into a single element that draws the component to the screen and handle GUI events known as the A. GUI delegate B. UI delegate C. delegate 51. JFrame A. is a top-level container B. is defined by Swing package C. is a top-level window with a title and a border 52. JDialog A. is a top-level container B. is defined by Swing package C. is an independent subwindow meant to carry temporary notice apart from the main Swing Application Window 53. JPanel A. is not a top-level container B. is defined by Swing package C. is the most commonly used content pane. An instance of the pane is created and then added to a frame 54. The add(widgetName) method allows widgets to be: A. selected on the pane B. added to the pane C. deleted from the pane 55. The Form – is the most fundamental object used in applications. Its main role is to ____ other objects that user uses to interact with the computer A. select B. add C. delete D. host 56. Buttons are used to A. perform immediate actions in an interface B. define the behavior for a specific feature C. turn a setting on or off 57. The GetComboBoxInfo function of the ComboBox A. Replaces the contents of a combo ox with the names of the subdirectories and files in a specified directory B. Retrieves the current selection from a combo box filled by using the DigDirListComboBox function C. Retrivies information about the specified combo box 58. The ComboBox_Dir macro of the combo box A. Adds item data to the list in a combo box at the specified location B. Adds names to the list displayed by a combo box C. Adds a string to a list in a combo box D. Adds Directories to the list displayed by a combo box 59. The ComboBoxEx controls: A. Are combo box controls that provide native support for item images B. Provides image list support C. Can provide the functionality of a combo box without having to manually draw item graphics 60. An edit control: A. Is a rectangular control window B. Is typically used in a dialog box C. Restrict the user to enter and edit text by typing on the keyboard 61. EditLineLength function of the Edit Control A. Limits the length of a text that can be entered into an edit control B. Retrieves the length in characters of a line in an edit or rich edit control 62. List Box: A. Is a control window B. Is not a control window C. Contains a simple list of items from which the user can choose 63. The message LB_FINDSTRING of the List Box: A. Gets a string from a list box B. Inserts a string or item data into a list box C. Finds the first string in a list box that begins with the specified string 64. The message LB_GETTEXT of the List Box: A. Gets a string from a list box B. Inserts a string or item data into a list box C. Finds the first string in a list box that begins with the specified string 65. The message LB_GETCARETINDEX of the List Box: A. Retrieves the index of the item that has the focus rectangle in a multiple-selection list box B. Gets the index of the anchor item 66. The message LB_GETCOUNT of the ListBox A. Gets the number of items per column in a specified list box B. Gets the number of items in a list box C. Gets the toal number of selected items in a multiple-selection list box 67. The message LB_GETSELCOUNT of the ListBox A. Gets the selection state of an item B. Gets the number of items in a list box C. Gets the total number of selected items in a multiple selection list box 68. The message LB_GETTITEMDATA of the List Box A. Gets the width, in pixels, that a list box can be scrolled horizontally (the scrollable width) if the list box has a horizontal scroll bar B. Gets the application-defined value associated with the specified list box item C. Gets data from a list box 69. The message LB_DIR of the List Box A. Adds the specified filename to a list box that contains of a directory listing B. Replaces the contents of a list box with the names of the subdirectories and files in a specified directory C. Adds names to the list displayed by a list box 70. The message LB_ADDFILE of the List Box A. Adds the specified filename to a list box that contains of a directory listing B. Replaces the contents of a list box with the names of the subdirectories and files in a specified directory C. Adds names to the list displayed by a list box