Comprehensive Exam Computer Science - 2017

Descripción

ThirdYear Third Year Test sobre Comprehensive Exam Computer Science - 2017, creado por Faheem Ahmed el 09/03/2017.
Faheem Ahmed
Test por Faheem Ahmed, actualizado hace más de 1 año
Faheem Ahmed
Creado por Faheem Ahmed hace más de 7 años
736
3

Resumen del Recurso

Pregunta 1

Pregunta
Given a binary tree whose inorder and preorder traversal are given by Inorder : EICFBGDJHK Preorder : BCEIFDGHJK The post order traversal of the above binary tree is
Respuesta
  • IEFCGJKHDB
  • IEFCJGKHDB
  • IEFCGKJHDB
  • IEFCGJKDBH

Pregunta 2

Pregunta
An all-pairs shortest-paths problem is efficiently solved using
Respuesta
  • Dijkstra' algorithm
  • Bellman-Ford algorithm
  • Kruskal Algorithm
  • Floyd-Warshall algorithm

Pregunta 3

Pregunta
Consider the Breshenham’s circle generation algorithm for plotting a circle with centre (0,0) and radius ‘r’ units in first quadrant. If the current point is (x1,y1) and decision parameter is pi then what will be the next point (xi+1,yi+1) and updated decision parameter pi+1 for pi ≥ 0
Respuesta
  • xi+1 = xi + 1 yi+1 = yi pi+1 = pi + 4xi + 6
  • xi+1 = xi + 1 yi+1 = yi - 1 pi+1 = pi + 4(xi - yi) + 10
  • xi+1 = xi yi+1 = yi - 1 pi+1 = pi + 4(xi - yi) + 6
  • xi+1 = xi - 1 yi+1 = yi pi+1 = pi + 4xi + 10

Pregunta 4

Pregunta
A point P(5,1) is rotated by 900 about a pivot point (2,2). What is the coordinate of new transformed point P’ ?
Respuesta
  • (3,5)
  • (5,3)
  • (2,4)
  • (1,5)

Pregunta 5

Pregunta
Consider a triangle A(0, 0), B(1, 1), C(5, 2). The triangle has to be rotated by an angle of 450 about the point P(-1, -1). What shall be the coordinates of the new triangle?
Respuesta
  • A'=(1, √2-1), B'=(-1, 2√2-1), C'=(3√2-1, (9/2)√2-1)
  • A'=(1, √2-1), B'=(2√2-1, -1), C'=(3√2-1, (9/2)√2-1)
  • A'=(-1, √2-1), B'=(-1, 2√2-1), C'=(3√2-1, (9/2)√2-1)
  • A'=(√2-1, -1), B'=(-1, 2√2-1), C'=(3√2-1, (9/2)√2-1)

Pregunta 6

Pregunta
Let R be the rectangular window against which the lines are to be clipped using 2D Sutherland-Cohen line clipping algorithm. The rectangular window has lower left-hand corner at (-5,1) and upper right-hand corner at (3,7). Consider the following three lines for clipping with the given end point co-ordinates: Line AB: A(-6,2) and B(-1,8) Line CD: C(-1,5) and D(4,8) Line EF: E(-2,3) and F(1,2) Which of the following line(s) is/are candidate for clipping?
Respuesta
  • AB
  • CD
  • EF
  • AB and CD

Pregunta 7

Pregunta
The Boolean expression x' y' z + y z + x z is equivalent to
Respuesta
  • x
  • y
  • z
  • x+y+z

Pregunta 8

Pregunta
Match the following: (a) Huffman codes (i) O(n2) (b) Optimal polygon triangulation (ii) θ(n3) (c) Activity selection problem (iii) O(nlgn) (d) Quicksort (iv) θ(n) Codes: (a) (b) (c) (d)
Respuesta
  • (i) (ii) (iv) (iii)
  • (i) (iv) (ii) (iii)
  • (iii) (ii) (iv) (i)
  • (iii) (iv) (ii) (i)

Pregunta 9

Pregunta
Which of the following is asymptotically smaller?
Respuesta
  • lg(lg*n)
  • lg*(lg n)
  • lg(n!)
  • lg*(n!)

Pregunta 10

Pregunta
Suppose that we have numbers between 1 and 1000 in a binary search tree and want to search for the number 364. Which of the following sequences could not be the sequence of nodes examined?
Respuesta
  • 925, 221, 912, 245, 899, 259, 363, 364
  • 3, 400, 388, 220, 267, 383, 382, 279, 364
  • 926, 203, 912, 241, 913, 246, 364
  • 3, 253, 402, 399, 331, 345, 398, 364

Pregunta 11

Pregunta
Which of the following statement is correct?
Respuesta
  • Aggregation is a strong type of association between two classes with full ownership.
  • Aggregation is a strong type of association between two classes with partial ownership.
  • Aggregation is a weak type of association between two classes with partial ownership.
  • Aggregation is a weak type of association between two classes with full ownership.

Pregunta 12

Pregunta
When one object reference variable is assigned to another object reference variable then
Respuesta
  • a copy of the object is created.
  • a copy of the reference is created.
  • a copy of the reference is not created.
  • it is illegal to assign one object reference variable to another object reference variable.

Pregunta 13

Pregunta
Software safety is quality assurance activity that focuses on hazards that
Respuesta
  • affect the reliability of a software component
  • may cause an entire system to fail.
  • may result from user input errors.
  • prevent profitable marketing of the final product

Pregunta 14

Pregunta
Which of the following sets represent five stages defined by Capability Maturity Model (CMM) in increasing order of maturity?
Respuesta
  • Initial, Defined, Repeatable, Managed, Optimized.
  • Initial, Repeatable, Defined, Managed, Optimized.
  • Initial, Defined, Managed, Repeatable, Optimized.
  • Initial, Repeatable, Managed, Defined, Optimized.

Pregunta 15

Pregunta
Which design metric is used to measure the compactness of the program in terms of lines of code?
Respuesta
  • Consistency
  • Conciseness
  • Efficiency
  • Accuracy

Pregunta 16

Pregunta
What is resolution of 4k UHD
Respuesta
  • 480*720
  • 720*1020
  • 1024*768
  • 4096*2160

Pregunta 17

Pregunta
What are the two main types of access control lists (ACLs)? 1. Standard 2. IEEE 3. Extended 4. Specialized
Respuesta
  • 1 and 3
  • 2 and 4
  • 3 and 4
  • 1 and 2

Pregunta 18

Pregunta
What is the name of the views that allow to organize the position of the graphical components on the active screen in Android?
Respuesta
  • frames
  • containers
  • layouts
  • grids

Pregunta 19

Pregunta
Which of the following services use TCP? 1. DHCP 2. SMTP 3. HTTP 4. TFTP 5. FTP
Respuesta
  • 1 and 2
  • 2, 3 and 5
  • 1, 2 and 4
  • 1, 3 and 4

Pregunta 20

Pregunta
What is the default subnet mask for a class C network?
Respuesta
  • 127.0.0.1
  • 255.0.0.0
  • 255.255.0.0
  • 255.255.255.0
  • None of the above

Pregunta 21

Pregunta
Which of the following TCP/IP protocol is used for transferring electronic mail messages from one machine to another?
Respuesta
  • FTP
  • SNMP
  • SMTP
  • RPC
  • None of the above

Pregunta 22

Pregunta
What part of 192.168.10.51 is the Network ID, assuming a default subnet mask?
Respuesta
  • 192
  • 192.168
  • 192.168.10
  • 51

Pregunta 23

Pregunta
Which WAN encapsulations can be configured on an asynchronous serial connection? 1. PPP 2. ATM 3. HDLC 4. SDLC 5. Frame Relay
Respuesta
  • 1 and 2
  • 2 and 4
  • 3, 4 and 5
  • All of the above

Pregunta 24

Pregunta
Which layer 1 devices can be used to enlarge the area covered by a single LAN segment? 1. Switch 2. NIC 3. Hub 4. Repeater 5. RJ45 transceiver
Respuesta
  • 1 only
  • 1 and 3
  • 3 and 4
  • 5 only

Pregunta 25

Pregunta
Routers operate at layer _____. LAN switches operate at layer _____. Ethernet hubs operate at layer _____. Word processing operates at layer _____.
Respuesta
  • 3, 3, 1, 7
  • 3, 2, 1, none
  • 3, 2, 1, 7
  • 3, 3, 2, none

Pregunta 26

Pregunta
A Process Control Block(PCB) does not contain which of the following
Respuesta
  • Program Counter
  • Process State
  • I/O status information
  • bootstrap program

Pregunta 27

Pregunta
With round robin scheduling algorithm in a time shared system,
Respuesta
  • using very large time slices converts it into First come First served scheduling algorithm
  • using very small time slices converts it into First come First served scheduling algorithm
  • using extremely small time slices increases performance
  • using very small time slices converts it into Shortest Job First algorithm

Pregunta 28

Pregunta
The following three conditions must be satisfied to solve the critical section problem : (choose three)
Respuesta
  • Aging
  • Mutual Exclusion
  • Deadlock
  • Progress
  • Bounded Waiting

Pregunta 29

Pregunta
Each request requires that the system consider the __________, _____________, ____________ to decide whether the current request can be satisfied or must wait to avoid a future possible deadlock. (choose three)
Respuesta
  • resources currently available
  • processes that have previously been in the system
  • resources currently allocated to each process
  • future requests and releases of each process

Pregunta 30

Pregunta
The main memory accommodates : (choose two)
Respuesta
  • operating system
  • CPU
  • user processes
  • All of these

Pregunta 31

Pregunta
Linux uses a time-sharing algorithm
Respuesta
  • to pair preemptive scheduling between multiple processes
  • for tasks where absolute priorities are more important than fairness
  • both (a) and (b)
  • none of the mentioned

Pregunta 32

Pregunta
In CRC there is no error if the remainder at the receiver is _____.
Respuesta
  • equal to the remainder at the sender
  • zero
  • nonzero
  • the quotient at the sender

Pregunta 33

Pregunta
What is Pending Intent in android?
Respuesta
  • It is a kind of an intent
  • It is used to pass the data between activities
  • It will fire at a future point of time.
  • None of the Above

Pregunta 34

Pregunta
Which one of the following statements is NOT correct about HTTP cookies?
Respuesta
  • A cookie is a piece of code that has the potential to compromise the security of an internet user
  • A cookie gains entry to the user‟s work area through an HTTP header
  • A cookie has an expiry date and time
  • Cookies can be used to track the browsing pattern of a user at a particular site

Pregunta 35

Pregunta
The minimum number of JK flip-flops required to construct a synchronous counter with the count sequence (0,0, 1, 1, 2, 2, 3, 3, 0, 0,.......) is ___________.
Respuesta
  • 1
  • 2
  • 3
  • 4
  • 8

Pregunta 36

Pregunta
Consider six memory partitions of sizes 200 KB, 400 KB, 600 KB, 500 KB, 300 KB and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?
Respuesta
  • 200KB and 300 KB
  • 200KB and 250 KB
  • 250KB and 300 KB
  • 300KB and 400 KB

Pregunta 37

Pregunta
How many address lines are needed to address each memory location in a 2048 x 4 memory chip?
Respuesta
  • 10
  • 11
  • 8
  • 16

Pregunta 38

Pregunta
Identify the correct order in which the following actions take place in an interaction between a web browser and a web server. 1. The web browser requests a webpage using HTTP. 2. The web browser establishes a TCP connection with the web server. 3. The web server sends the requested webpage using HTTP. 4. The web browser resolves the domain name using DNS.
Respuesta
  • 4,2,1,3
  • 1,2,3,4
  • 4,1,2,3
  • 2,4,1,3

Pregunta 39

Pregunta
Assume that there are 3 page frames which are initially empty. If the page reference string 1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6, the number of page faults using the optimal replacement policy is ___________
Respuesta
  • 5
  • 6
  • 7
  • 8

Pregunta 40

Pregunta
Mnemonic a memory trick is used in which of the following language?
Respuesta
  • Machine language
  • Assembly language
  • High level language
  • None of above

Pregunta 41

Pregunta
The smallest integer than can be represented by an 8-bit number in 2’s complement form is
Respuesta
  • - 256
  • - 127
  • - 128
  • 0

Pregunta 42

Pregunta
A process executes the code fork (); fork (); fork (); The total number of child processes created is -------------.
Respuesta
  • 5
  • 6
  • 7
  • 8
  • 4

Pregunta 43

Pregunta
Which of the following provides access to the uploaded file in the temporary directory on the web server?
Respuesta
  • $_FILES['file']['tmp_name']
  • $_FILES['file']['name']
  • $_FILES['file']['size']
  • $_FILES['file']['type']

Pregunta 44

Pregunta
An instruction cycle is made up of
Respuesta
  • One or more execute cycle
  • One or more fetch cycles
  • One opcode and one execute cycle
  • One fetch cycle and one or more execute cycle

Pregunta 45

Pregunta
Which of the following method can be used to create a MySql database using PHP?
Respuesta
  • mysql_connect()
  • mysql_query()
  • mysql_close()
  • None of the above

Pregunta 46

Pregunta
When determining the efficiency of algorithm, the space factor is measured by
Respuesta
  • Counting the maximum memory needed by the algorithm
  • Counting the minimum memory needed by the algorithm
  • Counting the average memory needed by the algorithm
  • Counting the maximum disk space needed by the algorithm

Pregunta 47

Pregunta
Which of the following is not a valid rule for XOR
Respuesta
  • 0 XOR 0 =0
  • 1 XOR 1 = 1
  • 1 XOR 0 = 1
  • B XOR B = 0

Pregunta 48

Pregunta
Linked lists are best suited
Respuesta
  • for relatively permanent collections of data
  • for the size of the structure and the data in the structure are constantly changing
  • for both of above situation
  • for none of above situation

Pregunta 49

Pregunta
In linear search algorithm the Worst case occurs when
Respuesta
  • The item is somewhere in the middle of the array
  • The item is not in the array at all
  • The item is the last element in the array
  • The item is the last element in the array or is not there at all

Pregunta 50

Pregunta
For an algorithm the complexity of the average case is
Respuesta
  • Much more complicated to analyze than that of worst case
  • Much more simpler to analyze than that of worst case
  • Sometimes more complicated and some other times simpler than that of worst case
  • None or above

Pregunta 51

Pregunta
Which of the following data structure is linear data structure?
Respuesta
  • Trees
  • Graphs
  • Arrays
  • None of above

Pregunta 52

Pregunta
The elements of an array are stored successively in memory cells because
Respuesta
  • by this way computer can keep track only the address of the first element and the addresses of other elements can be calculated
  • the architecture of computer memory does not allow arrays to store other than serially
  • both of above
  • none of above

Pregunta 53

Pregunta
Which of the following data structure is not linear data structure?
Respuesta
  • Arrays
  • Linked lists
  • Both of above
  • None of above

Pregunta 54

Pregunta
The Average case occur in linear search algorithm
Respuesta
  • When Item is somewhere in the middle of the array
  • When Item is not in the array at all
  • When Item is the last element in the array
  • When Item is the last element in the array or is not there at all

Pregunta 55

Pregunta
Which of the following case does not exist in complexity theory
Respuesta
  • Best case
  • Worst case
  • Average case
  • Null case

Pregunta 56

Pregunta
The operation of processing each element in the list is known as
Respuesta
  • Sorting
  • Merging
  • Inserting
  • Traversal

Pregunta 57

Pregunta
Arrays are best data structures
Respuesta
  • for relatively permanent collections of data
  • for the size of the structure and the data in the structure are constantly changing
  • for both of above situation
  • for none of above situation

Pregunta 58

Pregunta
A disk drive has 100 cyclinders, numbered 0 to 99. Disk requests come to the disk driver for cyclinders 12, 26, 24, 4, 42, 8 and 50 in that order. The driver is currently serving a request at cyclinder 24. A seek takes 6 msec per cyclinder move. How much seek time is needed for shortest seek time first (SSTF) algorithm ?
Respuesta
  • 0.984 sec
  • 0.396 sec
  • 0.738 sec
  • 0.42 sec

Pregunta 59

Pregunta
<SCRIPT> … </SCRIPT> tag can be placed within
Respuesta
  • head
  • body
  • both head and body
  • none of the above

Pregunta 60

Pregunta
Which of the following is NOT an example of a client-side operation in web page rendering?
Respuesta
  • A database lookup for a customer name.
  • A format check for a phone number field input.
  • The detection of which web browser is being used.
  • Writing a cookie.
  • An alert popup.

Pregunta 61

Pregunta
Which of the following is valid declaration for array? 1. char [] startsWith []; 2. int [] Score; 3. char [8] dist; 4. School students[]; 5. School students[5];
Respuesta
  • 1, 2, 4
  • 2, 4, 5
  • 2, 3, 4
  • All are correct.

Pregunta 62

Pregunta
In this Below which of the following statement is suitable to start the thread? class ABC implements Runnable { Public static void main(String args[]) { /**** Some Code is Missing Here *****/ } public void run() {} }
Respuesta
  • Thread t = new Thread(ABC);
  • Thread t = new Thread(ABC); t.start();
  • ABC run = new ABC(); Thread t = new Thread(run); t.start();
  • Thread t = new Thread(); t.run();

Pregunta 63

Pregunta
Which of the following sentences is FALSE:
Respuesta
  • In a magnetic disk, a sector is a group of clusters
  • In a magnetic disk, a cluster is a group of sectors
  • In a magnetic disk, the same magnetic head reads and writes the data
  • A magnetic disk is slower than a SSD

Pregunta 64

Pregunta
Select the INCORRECT sentence:
Respuesta
  • RAM contents are lost in the event of a power failure
  • RAM memory stores both programs and data
  • Cache memory is faster than standard RAM memory
  • RAM memory and ROM memory are interchangeable, as they can do the same functions
  • CMOS memory has a low power consumption

Pregunta 65

Pregunta
Which Of the following are true regarding Java.lang.ArrayList ?
Respuesta
  • Elements in the ArrayList is Ordered.
  • Collections are gaurentee to Immutable
  • Elements in Collections are unique.
  • Elements in the Collections are acessed using Unique value

Pregunta 66

Pregunta
public class A implements Runnable { public static void main(String args[]) { //Some Code is missig here } public void run() {} } From the below which of the following statement is suitable to replace that code missig Comment?
Respuesta
  • Thread x = new Thread(A);
  • Thread x = new Thread(A); x.start();
  • A run = new A(); Thread t = new Thread(run); x.start();
  • Thread x = new Thread(); x.run();

Pregunta 67

Pregunta
What will be the content of array variable table after executing the following code? for(int i = 0; i < 3; i + +) for(int j = 0; j < 3; j + +) if(j = i) table[i][j] =1; else table[i][j] = 0;
Respuesta
  • 0 0 0 0 0 0 0 0 0.
  • 1 0 0 1 1 0 1 1 1.
  • 1 0 0 0 1 0 0 0 1.
  • 0 0 1 0 1 0 1 0 0.

Pregunta 68

Pregunta
What is Expected Output Of the Following Program Class A{ public static void main(String args[]){ int i = l, j = 6; while (j--) { i++; } System.out.println("x = " + x +" y = " + y); } }
Respuesta
  • i = 6 j = 0
  • i = 7 j = 0
  • i = 6 j = -1
  • Compile Error

Pregunta 69

Pregunta
Match the following : (a) Disk scheduling 1. Round-robin (b) Batch processing 2. SCAN (c) Time sharing 3. LIFO (d) Interrupt processing 4. FIFO
Respuesta
  • (a) (b) (c) (d) 3 4 2 1
  • (a) (b) (c) (d) 4 3 2 1
  • (a) (b) (c) (d) 2 4 1 3
  • (a) (b) (c) (d) 1 4 3 2

Pregunta 70

Pregunta
consider the 3 processes, P1, P2 and P3 shown in the table Process Arrival time Time unit required P1 0 5 P2 1 7 P3 3 4 The completion order of the 3 processes under the policies FCFS and RRS (round robin scheduling with CPU quantum of 2 time units) are
Respuesta
  • FCFS: P1, P2, P3 RR2: P1, P2, P3
  • FCFS: P1, P3, P2 RR2: P1, P3, P2
  • FCFS: P1, P2, P3 RR2: P1, P3, P2
  • FCFS: P1, P3, P2 RR2: P1, P2, P3

Pregunta 71

Pregunta
Consider the virtual page reference string 1, 2, 3, 2, 4, 1, 3, 2, 4, 1 On a demand paged virtual memory system running on a computer system that main memory size of 3 pages frames which are initially empty. Let LRU, FIFO and OPTIMAL denote the number of page faults under the corresponding page replacements policy. Then
Respuesta
  • OPTIMAL < LRU < FIFO
  • OPTIMAL < FIFO < LRU
  • OPTIMAL = LRU
  • OPTIMAL = FIFO

Pregunta 72

Pregunta
In the architecture of a database system external level is the
Respuesta
  • physical level.
  • logical level.
  • conceptual level
  • view level.

Pregunta 73

Pregunta
The sum of products expansion for the function F(x, y, z) = (x + y)z’ is given as
Respuesta
  • x’y’z + xyz’ + x’yz’
  • xyz + xyz’ + xy’z’
  • xy’z’ + x’y’z’ + xyz’
  • xyz’ + xy’z’ + x’yz’

Pregunta 74

Pregunta
The property / properties of a database is / are :
Respuesta
  • It is an integrated collection of logically related records
  • It consolidates separate files into a common pool of data records.
  • Data stored in a database is independent of the application programs using it.
  • All of the above

Pregunta 75

Pregunta
Which one of the following statements is false?
Respuesta
  • The data dictionary is normally maintained by the database administrator.
  • Data elements in the database can be modified by changing the data dictionary.
  • The data dictionary contains the name and description of each data element.
  • The data dictionary is a tool used exclusively by the database administrator.

Pregunta 76

Pregunta
Transaction processing is associated with everything below except
Respuesta
  • producing detail, summary, or exception reports
  • recording a business activity.
  • confirming an action or triggering a response.
  • maintaining data.

Pregunta 77

Pregunta
SET concept is used in :
Respuesta
  • Network Model
  • Hierarchical Model
  • Relational Model
  • None of these

Pregunta 78

Pregunta
The file organization that provides very fast access to any arbitrary record of a file is
Respuesta
  • Ordered file
  • Unordered file
  • Hashed file
  • B-tree

Pregunta 79

Pregunta
Which of the following operation is used if we are interested in only certain columns of a table?
Respuesta
  • PROJECTION
  • SELECTION
  • UNION
  • JOIN

Pregunta 80

Pregunta
Using Relational Algebra the query that finds customers, who have a balance of over 1000 is
Respuesta
  • PCustomer_name(s balance >1000(Deposit))
  • s Customer_name(Pbalance >1000(Deposit))
  • PCustomer_name(s balance >1000(Borrow))
  • s Customer_name(Pbalance >1000(Borrow))

Pregunta 81

Pregunta
Consider the join of a relation R with relation S. If R has m tuples and S has n tuples,then the maximum size of join is:
Respuesta
  • mn
  • m+n
  • (m+n)/2
  • 2(m+n)

Pregunta 82

Pregunta
What is Manifest.xml in android?
Respuesta
  • It has information about layout in an application
  • It has the information about activities in an application
  • It has all the information about an application
  • None of the above

Pregunta 83

Pregunta
What is the life cycle of broadcast receivers in android?
Respuesta
  • send intent()
  • onRecieve()
  • implicitBroadcast()
  • sendBroadcast(), sendOrderBroadcast(), and sendStickyBroadcast().

Pregunta 84

Pregunta
Which of the following method is suitable when you need to send larger form submissions?
Respuesta
  • Get
  • Post
  • Both Get and Post
  • There is no direct way for larger form. You need to store them in a file and retrieve

Pregunta 85

Pregunta
Is it mandatory to call onCreate() and onStart() in android?
Respuesta
  • No, we can write the program without writing onCreate() and onStart()
  • Yes, we should call onCreate() and onStart() to write the program
  • At least we need to call onCreate() once
  • None of the above

Pregunta 86

Pregunta
The difference between include() and require() in PHP
Respuesta
  • are different how they handle failure
  • both are same in every aspects
  • is include() produced a Fatal Error while require results in a Warning
  • none of above

Pregunta 87

Pregunta
Which of the following is not true?
Respuesta
  • PHP can be used to develop web applications.
  • PHP makes a website dynamic.
  • PHP applications can not be compiled.
  • PHP can not be embedded into html.

Pregunta 88

Pregunta
Any type of modification on the parameter inside the function will reflect in actual variable value can be related to
Respuesta
  • call by value
  • call by reference
  • both of above
  • none of above

Pregunta 89

Pregunta
Which of the following is NOT a valid deadlock prevention scheme?
Respuesta
  • Release all resources before requesting a new resource
  • Number the resources uniquely and never request a lower numbered resource than the last one requested
  • Never request a resource after releasing any resource
  • Request and all required resources be allocated before execution.

Pregunta 90

Pregunta
UML meaning is
Respuesta
  • Unique modeling language
  • Unified modeling language
  • Unified modern language
  • Unified master language

Pregunta 91

Pregunta
In Python, What is the output when following code is executed ? str1="helloworld" str1[ : : -1]
Respuesta
  • dlrowolleh
  • hello
  • world
  • helloworld

Pregunta 92

Pregunta
In python, What will be the output? t=(1,2,4,3) t[1:3]
Respuesta
  • (1, 2)
  • (1, 2, 4)
  • (2, 4)
  • (2, 4, 3)

Pregunta 93

Pregunta
Which of the following is a Python tuple?
Respuesta
  • [1, 2, 3]
  • (1, 2, 3)
  • {1, 2, 3}
  • { }

Pregunta 94

Pregunta
Which of the following are unary operators in C? 1. ! 2. sizeof 3. ~ 4. &&
Respuesta
  • 1, 2
  • 1, 3
  • 2, 4
  • 1, 2, 3

Pregunta 95

Pregunta
Which bitwise operator is suitable for turning on a particular bit in a number?
Respuesta
  • && operator
  • & operator
  • || operator
  • | operator

Pregunta 96

Pregunta
What will be the output of the program? #include<stdio.h> int main() { printf("%d %d\n", 32<<1, 32<<0); printf("%d %d\n", 32<<-1, 32<<-0); printf("%d %d\n", 32>>1, 32>>0); printf("%d %d\n", 32>>-1, 32>>-0); return 0; }
Respuesta
  • Garbage values
  • 64 32 0 32 16 32 0 32
  • All zeros
  • 8 0 0 0 32 0 0 16

Pregunta 97

Pregunta
Which one is not a nickname of a version of Android ?
Respuesta
  • Cupcake
  • Gingerbread
  • Honeycomb
  • Muffin

Pregunta 98

Pregunta
In Unix/Linux, Which command is used to print a file
Respuesta
  • print
  • ptr
  • lpr
  • pg
  • None of the above

Pregunta 99

Pregunta
Which of the following commands is used to update access and modification times of a file?
Respuesta
  • grep
  • wc
  • touch
  • cat
  • None of the above

Pregunta 100

Pregunta
What is the minimum number of two-input NAND gates used to perform the function of two input OR gate ?
Respuesta
  • One
  • Two
  • Three
  • Four

Pregunta 101

Pregunta
The decimal equivalent of hex number 1A53 is
Respuesta
  • 6793
  • 6739
  • 6973
  • 6379

Pregunta 102

Pregunta
How many Flip-Flops are required for mod–16 counter?
Respuesta
  • 5
  • 6
  • 3
  • 4

Pregunta 103

Pregunta
The 2’s complement of the number 1101101 is
Respuesta
  • 0101110
  • 0111110
  • 0110010
  • 0010011

Pregunta 104

Pregunta
When simplified with Boolean Algebra (x + y)(x + z) simplifies to
Respuesta
  • x
  • x + x(y + z)
  • x(1 + yz)
  • x + yz

Pregunta 105

Pregunta
A 4-bit synchronous counter uses flip-flops with propagation delay times of 15 ns each. The maximum possible time required for change of state will be
Respuesta
  • 15 ns
  • 30 ns
  • 45 ns
  • 60 ns

Pregunta 106

Pregunta
1’s complement representation of decimal number of -17 by using 8 bit representation is
Respuesta
  • 1110 1110
  • 1101 1101
  • 1100 1100
  • 0001 0001

Pregunta 107

Pregunta
Which command is used to extract specific columns from the file?
Respuesta
  • cat
  • cut
  • grep
  • find
  • None of the above

Pregunta 108

Pregunta
Grant and revoke are ....... statements.
Respuesta
  • DDL
  • TCL
  • DCL
  • DML

Pregunta 109

Pregunta
How many lines the truth table for a four-input NOR gate would contain to cover all possible input combinations ?
Respuesta
  • 4
  • 8
  • 12
  • 16

Pregunta 110

Pregunta
Match the following A.Plasma paneL i) Polarizer B.DVST ii) Zinc sulfide C.LCD iii) Dielectric mesh D.Thin film electroluminescent iv) Neon gas
Respuesta
  • A-ii, B-iv, C-i, D-iii
  • A-ii, B-iii, C-iv, D-i
  • A-iv, B-iii, C-i, D-ii
  • A-i ,B-iv, C-ii, D-iii

Pregunta 111

Pregunta
What type of join is needed when you wish to include rows that do not have matching values?
Respuesta
  • Equi-join
  • Natural join
  • Outer join
  • All the above

Pregunta 112

Pregunta
If an object is rotated through an angle A in clockwise direction, the rotation matrix R= ...............
Respuesta
  • cos A sin A -sin A cos A
  • cos A -sin A sin A cos A
  • sin A cos A cos A sin A
  • None

Pregunta 113

Pregunta
Forming products of transformation matrices is often referred as
Respuesta
  • Concatenation
  • Composition
  • both a&b
  • None of above

Pregunta 114

Pregunta
In a risk-based approach the risks identified may be used to: i. Determine the test technique to be employed ii. Determine the extent of testing to be carried out iii. Prioritize testing in an attempt to find critical defects as early as possible. iv. Determine the cost of the project
Respuesta
  • ii is True; i, iii, iv and v are False
  • i,ii,iii are true and iv is false
  • ii and iii are True; i, iv are False
  • ii, iii and iv are True; i is false

Pregunta 115

Pregunta
Which of the following is not a part of the Test Implementation and Execution Phase?
Respuesta
  • Creating test suites from the test cases
  • Executing test cases either manually or by using test execution tools
  • Comparing actual results
  • Designing the Tests

Pregunta 116

Pregunta
What can static analysis NOT find?
Respuesta
  • The use of a variable before it has been defined.
  • Unreachable (“dead”) code.
  • Memory leaks.
  • Array bound violations.

Pregunta 117

Pregunta
Which plan describes how the skills and experience of the project team members will be developed ?
Respuesta
  • HR Plan
  • Manager Plan
  • Team Plan
  • Staff Development Plan

Pregunta 118

Pregunta
Alpha and Beta Testing are forms of _______ .
Respuesta
  • Acceptance testing
  • Integration testing
  • System Testing
  • Unit testing

Pregunta 119

Pregunta
Which is the most important feature of spiral model?
Respuesta
  • Quality management
  • Risk management
  • Performance management
  • Efficiency management

Pregunta 120

Pregunta
Key to represent relationship between tables is called
Respuesta
  • primary key
  • secondary key
  • foreign key
  • none of the above

Pregunta 121

Pregunta
Which method executes only once
Respuesta
  • start() method
  • init() method
  • stop() method
  • destroy() method

Pregunta 122

Pregunta
__________ generate interrupt signal to microprocessor and receive acknowledge
Respuesta
  • priority resolver
  • control logic
  • interrupt request register
  • interrupt register

Pregunta 123

Pregunta
In 8086 the overflow flag is set when _____________.
Respuesta
  • the sum is more than 16 bits.
  • signed numbers go out of their range after an arithmetic operation.
  • carry and sign flags are set.
  • subtraction

Pregunta 124

Pregunta
Address line for TRAP is?
Respuesta
  • 0023H
  • 0024H
  • 0033H
  • 0099H

Pregunta 125

Pregunta
The instruction, MOV AX, 1234H is an example of
Respuesta
  • register addressing mode
  • direct addressing mode
  • immediate addressing mode
  • based indexed addressing mode

Pregunta 126

Pregunta
In which order, Processor status word of 8085 microprocessor has five flags ?
Respuesta
  • S, Z, AC, P, CY
  • S, OV, AC, P, CY
  • S, Z, OV, P, CY
  • S, Z, AC, P, OV

Pregunta 127

Pregunta
In Java, Runnable is
Respuesta
  • Class
  • Method
  • Variable
  • Interface

Pregunta 128

Pregunta
Consider the following statements: In 8085 microprocessor, data-bus and address bus are multiplexed in order to I) Increase the speed of microprocessor. II) Reduce the number of pins. III) Connect more peripheral chips. Which of these statements is/are correct?
Respuesta
  • (I) only
  • (II) only
  • (II) & (III)
  • (I),(II) & (III)

Pregunta 129

Pregunta
colspan can be added to only what tag?
Respuesta
  • <table>
  • <tr>
  • <td>
  • All the above

Pregunta 130

Pregunta
Which class cannot be subclassed (or extended) in java?
Respuesta
  • abstract class
  • parent class
  • Final class
  • None of above

Pregunta 131

Pregunta
A technology called ____ makes it possible for one person's computer to directly access the contents of another person's hard disk.
Respuesta
  • P2P
  • URL
  • HTML
  • DTD

Pregunta 132

Pregunta
The main reason for using encryption on the Internet is:
Respuesta
  • To speed up the communication
  • To prevent people other than the recipients from reading the message
  • To guarantee that the message reached its intended target..
  • All of the above

Pregunta 133

Pregunta
The Internet allows strangers to group together to gain bulk price discounts normally available to large companies; this is defined as:
Respuesta
  • Customer-to-customer transaction
  • Business-to-business transaction
  • Price bidding
  • Buying cartel

Pregunta 134

Pregunta
How can you open a link in a new browser window?
Respuesta
  • <a href="url" new>
  • <a href="url" target="new">
  • <a href="url" target="_blank">
  • <a href="url" target="_new">

Pregunta 135

Pregunta
What method is used to specify a container's layout in JSP?
Respuesta
  • setLayout()
  • setContainerLayout()
  • ContainerLayout()
  • setConLayout().

Pregunta 136

Pregunta
What value does readLine() return when it has reached the end of a file in JSP?
Respuesta
  • Last character in the file
  • Null
  • True.
  • False

Pregunta 137

Pregunta
In JSP, a Canvas object provides access to a Graphics object via one of its method called:
Respuesta
  • getCanvas()
  • getGraphics()
  • paint()
  • accessGraphics()

Pregunta 138

Pregunta
The following web page is loaded into a web server: <html> <head><title>JavaScript question</title></head> <body> <script language="JavaScript"> book = new Array(1,2,3,4,5,6,7,8); document.write(book[1]); book[10]=10; document.write(book[10]); </script> </body> </html> Once the above web page is loaded what will its body contain?
Respuesta
  • 2 10
  • 1 10
  • 210
  • 110

Pregunta 139

Pregunta
Consider the following script: <html> <head><title>JavaScript</title></head> <body> <script language="JavaScript"> document.write((125/5)%12); </script> </body> </html> What would be the output of the above script?
Respuesta
  • 0
  • 1
  • 2.083
  • 25%12

Pregunta 140

Pregunta
Consider the following entries in a Cascading Style Sheet (CSS) file. P {colour: blue; background-colour: white; border-colour: red; border-left: solid} BODY {colour: black; border-colour: green} What is the colour of text in a paragraph of an HTML document that uses the above style sheet?
Respuesta
  • green
  • blue
  • black
  • White.

Pregunta 141

Pregunta
Matlab stands for
Respuesta
  • Mathematics Lab
  • Matrix Laboratory
  • Mathematical Laboratory
  • None of the Above

Pregunta 142

Pregunta
Look at this series: 664, 332, 340, 170, ____, 89, ... What number should fill the blank?
Respuesta
  • 85
  • 97
  • 109
  • 178

Pregunta 143

Pregunta
Which of the following is not a pair tag?
Respuesta
  • <p>
  • <u>
  • <i>
  • <img>

Pregunta 144

Pregunta
CALANDER is coded in a code as CLANAEDR. Find the code for CIRCULAR under the same rule.
Respuesta
  • LACANDER
  • CRIUCALR
  • CLANADER
  • None of these

Pregunta 145

Pregunta
In one's complement representation 1111 1111 represents
Respuesta
  • +0
  • -0
  • +1
  • -1

Pregunta 146

Pregunta
Using Demorgan's theorem we can convert AND-OR circuit to
Respuesta
  • OR-AND
  • NOR-NOR
  • NAND-NAND
  • NAND-NOR

Pregunta 147

Pregunta
The number of interrupt lines in 8085 is
Respuesta
  • 2
  • 3
  • 4
  • 5

Pregunta 148

Pregunta
Ability to learn how to do tasks based on the data given for training or initial experience
Respuesta
  • Self Organization
  • Adaptive Learning
  • Fault tolerance
  • Robustness

Pregunta 149

Pregunta
Which of the following propositions is tautology?
Respuesta
  • (p v q)→q
  • p v (q→p)
  • p v (p→q)
  • Both (b) & (c)

Pregunta 150

Pregunta
Which actions can be triggered by a button click in Android ? (check all that apply)
Respuesta
  • change appearance of other views of the same activity
  • start a different activity
  • change appearance of the button
Mostrar resumen completo Ocultar resumen completo

Similar

BMSC335 Lecture 3 Week 1
Maddie McIntyre
Peptic Ulcer
Miar Abdelhamid
Immunology
El Prs
Insurance Quiz
crabbette
Tabla Periódica y Elementos
Diego Santos
Teoria del Consumidor y del Mercado: Oferta, Demanda y Precio
Ani Kimori Rosas
Esquema del reformismo ilustrado en España
maya velasquez
Mi Entorno Personal de Aprendizaje (PLE)
Martín López Barrientos
MIGRAZIO-MUGIMENDUAK:Movimientos migratorios
Amparo de Bran
Currículum de la Educación Infantil
Montserrat Gorrín Méndez