Comprehensive Exam Computer Science - 2017

Descrição

ThirdYear Third Year Quiz sobre Comprehensive Exam Computer Science - 2017, criado por Faheem Ahmed em 09-03-2017.
Faheem Ahmed
Quiz por Faheem Ahmed, atualizado more than 1 year ago
Faheem Ahmed
Criado por Faheem Ahmed mais de 7 anos atrás
732
3

Resumo de Recurso

Questão 1

Questão
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
Responda
  • IEFCGJKHDB
  • IEFCJGKHDB
  • IEFCGKJHDB
  • IEFCGJKDBH

Questão 2

Questão
An all-pairs shortest-paths problem is efficiently solved using
Responda
  • Dijkstra' algorithm
  • Bellman-Ford algorithm
  • Kruskal Algorithm
  • Floyd-Warshall algorithm

Questão 3

Questão
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
Responda
  • 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

Questão 4

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

Questão 5

Questão
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?
Responda
  • 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)

Questão 6

Questão
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?
Responda
  • AB
  • CD
  • EF
  • AB and CD

Questão 7

Questão
The Boolean expression x' y' z + y z + x z is equivalent to
Responda
  • x
  • y
  • z
  • x+y+z

Questão 8

Questão
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)
Responda
  • (i) (ii) (iv) (iii)
  • (i) (iv) (ii) (iii)
  • (iii) (ii) (iv) (i)
  • (iii) (iv) (ii) (i)

Questão 9

Questão
Which of the following is asymptotically smaller?
Responda
  • lg(lg*n)
  • lg*(lg n)
  • lg(n!)
  • lg*(n!)

Questão 10

Questão
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?
Responda
  • 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

Questão 11

Questão
Which of the following statement is correct?
Responda
  • 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.

Questão 12

Questão
When one object reference variable is assigned to another object reference variable then
Responda
  • 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.

Questão 13

Questão
Software safety is quality assurance activity that focuses on hazards that
Responda
  • 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

Questão 14

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

Questão 15

Questão
Which design metric is used to measure the compactness of the program in terms of lines of code?
Responda
  • Consistency
  • Conciseness
  • Efficiency
  • Accuracy

Questão 16

Questão
What is resolution of 4k UHD
Responda
  • 480*720
  • 720*1020
  • 1024*768
  • 4096*2160

Questão 17

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

Questão 18

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

Questão 19

Questão
Which of the following services use TCP? 1. DHCP 2. SMTP 3. HTTP 4. TFTP 5. FTP
Responda
  • 1 and 2
  • 2, 3 and 5
  • 1, 2 and 4
  • 1, 3 and 4

Questão 20

Questão
What is the default subnet mask for a class C network?
Responda
  • 127.0.0.1
  • 255.0.0.0
  • 255.255.0.0
  • 255.255.255.0
  • None of the above

Questão 21

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

Questão 22

Questão
What part of 192.168.10.51 is the Network ID, assuming a default subnet mask?
Responda
  • 192
  • 192.168
  • 192.168.10
  • 51

Questão 23

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

Questão 24

Questão
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
Responda
  • 1 only
  • 1 and 3
  • 3 and 4
  • 5 only

Questão 25

Questão
Routers operate at layer _____. LAN switches operate at layer _____. Ethernet hubs operate at layer _____. Word processing operates at layer _____.
Responda
  • 3, 3, 1, 7
  • 3, 2, 1, none
  • 3, 2, 1, 7
  • 3, 3, 2, none

Questão 26

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

Questão 27

Questão
With round robin scheduling algorithm in a time shared system,
Responda
  • 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

Questão 28

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

Questão 29

Questão
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)
Responda
  • resources currently available
  • processes that have previously been in the system
  • resources currently allocated to each process
  • future requests and releases of each process

Questão 30

Questão
The main memory accommodates : (choose two)
Responda
  • operating system
  • CPU
  • user processes
  • All of these

Questão 31

Questão
Linux uses a time-sharing algorithm
Responda
  • 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

Questão 32

Questão
In CRC there is no error if the remainder at the receiver is _____.
Responda
  • equal to the remainder at the sender
  • zero
  • nonzero
  • the quotient at the sender

Questão 33

Questão
What is Pending Intent in android?
Responda
  • 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

Questão 34

Questão
Which one of the following statements is NOT correct about HTTP cookies?
Responda
  • 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

Questão 35

Questão
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 ___________.
Responda
  • 1
  • 2
  • 3
  • 4
  • 8

Questão 36

Questão
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?
Responda
  • 200KB and 300 KB
  • 200KB and 250 KB
  • 250KB and 300 KB
  • 300KB and 400 KB

Questão 37

Questão
How many address lines are needed to address each memory location in a 2048 x 4 memory chip?
Responda
  • 10
  • 11
  • 8
  • 16

Questão 38

Questão
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.
Responda
  • 4,2,1,3
  • 1,2,3,4
  • 4,1,2,3
  • 2,4,1,3

Questão 39

Questão
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 ___________
Responda
  • 5
  • 6
  • 7
  • 8

Questão 40

Questão
Mnemonic a memory trick is used in which of the following language?
Responda
  • Machine language
  • Assembly language
  • High level language
  • None of above

Questão 41

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

Questão 42

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

Questão 43

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

Questão 44

Questão
An instruction cycle is made up of
Responda
  • 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

Questão 45

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

Questão 46

Questão
When determining the efficiency of algorithm, the space factor is measured by
Responda
  • 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

Questão 47

Questão
Which of the following is not a valid rule for XOR
Responda
  • 0 XOR 0 =0
  • 1 XOR 1 = 1
  • 1 XOR 0 = 1
  • B XOR B = 0

Questão 48

Questão
Linked lists are best suited
Responda
  • 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

Questão 49

Questão
In linear search algorithm the Worst case occurs when
Responda
  • 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

Questão 50

Questão
For an algorithm the complexity of the average case is
Responda
  • 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

Questão 51

Questão
Which of the following data structure is linear data structure?
Responda
  • Trees
  • Graphs
  • Arrays
  • None of above

Questão 52

Questão
The elements of an array are stored successively in memory cells because
Responda
  • 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

Questão 53

Questão
Which of the following data structure is not linear data structure?
Responda
  • Arrays
  • Linked lists
  • Both of above
  • None of above

Questão 54

Questão
The Average case occur in linear search algorithm
Responda
  • 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

Questão 55

Questão
Which of the following case does not exist in complexity theory
Responda
  • Best case
  • Worst case
  • Average case
  • Null case

Questão 56

Questão
The operation of processing each element in the list is known as
Responda
  • Sorting
  • Merging
  • Inserting
  • Traversal

Questão 57

Questão
Arrays are best data structures
Responda
  • 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

Questão 58

Questão
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 ?
Responda
  • 0.984 sec
  • 0.396 sec
  • 0.738 sec
  • 0.42 sec

Questão 59

Questão
<SCRIPT> … </SCRIPT> tag can be placed within
Responda
  • head
  • body
  • both head and body
  • none of the above

Questão 60

Questão
Which of the following is NOT an example of a client-side operation in web page rendering?
Responda
  • 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.

Questão 61

Questão
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];
Responda
  • 1, 2, 4
  • 2, 4, 5
  • 2, 3, 4
  • All are correct.

Questão 62

Questão
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() {} }
Responda
  • 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();

Questão 63

Questão
Which of the following sentences is FALSE:
Responda
  • 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

Questão 64

Questão
Select the INCORRECT sentence:
Responda
  • 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

Questão 65

Questão
Which Of the following are true regarding Java.lang.ArrayList ?
Responda
  • 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

Questão 66

Questão
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?
Responda
  • 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();

Questão 67

Questão
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;
Responda
  • 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.

Questão 68

Questão
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); } }
Responda
  • i = 6 j = 0
  • i = 7 j = 0
  • i = 6 j = -1
  • Compile Error

Questão 69

Questão
Match the following : (a) Disk scheduling 1. Round-robin (b) Batch processing 2. SCAN (c) Time sharing 3. LIFO (d) Interrupt processing 4. FIFO
Responda
  • (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

Questão 70

Questão
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
Responda
  • 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

Questão 71

Questão
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
Responda
  • OPTIMAL < LRU < FIFO
  • OPTIMAL < FIFO < LRU
  • OPTIMAL = LRU
  • OPTIMAL = FIFO

Questão 72

Questão
In the architecture of a database system external level is the
Responda
  • physical level.
  • logical level.
  • conceptual level
  • view level.

Questão 73

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

Questão 74

Questão
The property / properties of a database is / are :
Responda
  • 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

Questão 75

Questão
Which one of the following statements is false?
Responda
  • 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.

Questão 76

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

Questão 77

Questão
SET concept is used in :
Responda
  • Network Model
  • Hierarchical Model
  • Relational Model
  • None of these

Questão 78

Questão
The file organization that provides very fast access to any arbitrary record of a file is
Responda
  • Ordered file
  • Unordered file
  • Hashed file
  • B-tree

Questão 79

Questão
Which of the following operation is used if we are interested in only certain columns of a table?
Responda
  • PROJECTION
  • SELECTION
  • UNION
  • JOIN

Questão 80

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

Questão 81

Questão
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:
Responda
  • mn
  • m+n
  • (m+n)/2
  • 2(m+n)

Questão 82

Questão
What is Manifest.xml in android?
Responda
  • 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

Questão 83

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

Questão 84

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

Questão 85

Questão
Is it mandatory to call onCreate() and onStart() in android?
Responda
  • 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

Questão 86

Questão
The difference between include() and require() in PHP
Responda
  • 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

Questão 87

Questão
Which of the following is not true?
Responda
  • 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.

Questão 88

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

Questão 89

Questão
Which of the following is NOT a valid deadlock prevention scheme?
Responda
  • 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.

Questão 90

Questão
UML meaning is
Responda
  • Unique modeling language
  • Unified modeling language
  • Unified modern language
  • Unified master language

Questão 91

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

Questão 92

Questão
In python, What will be the output? t=(1,2,4,3) t[1:3]
Responda
  • (1, 2)
  • (1, 2, 4)
  • (2, 4)
  • (2, 4, 3)

Questão 93

Questão
Which of the following is a Python tuple?
Responda
  • [1, 2, 3]
  • (1, 2, 3)
  • {1, 2, 3}
  • { }

Questão 94

Questão
Which of the following are unary operators in C? 1. ! 2. sizeof 3. ~ 4. &&
Responda
  • 1, 2
  • 1, 3
  • 2, 4
  • 1, 2, 3

Questão 95

Questão
Which bitwise operator is suitable for turning on a particular bit in a number?
Responda
  • && operator
  • & operator
  • || operator
  • | operator

Questão 96

Questão
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; }
Responda
  • Garbage values
  • 64 32 0 32 16 32 0 32
  • All zeros
  • 8 0 0 0 32 0 0 16

Questão 97

Questão
Which one is not a nickname of a version of Android ?
Responda
  • Cupcake
  • Gingerbread
  • Honeycomb
  • Muffin

Questão 98

Questão
In Unix/Linux, Which command is used to print a file
Responda
  • print
  • ptr
  • lpr
  • pg
  • None of the above

Questão 99

Questão
Which of the following commands is used to update access and modification times of a file?
Responda
  • grep
  • wc
  • touch
  • cat
  • None of the above

Questão 100

Questão
What is the minimum number of two-input NAND gates used to perform the function of two input OR gate ?
Responda
  • One
  • Two
  • Three
  • Four

Questão 101

Questão
The decimal equivalent of hex number 1A53 is
Responda
  • 6793
  • 6739
  • 6973
  • 6379

Questão 102

Questão
How many Flip-Flops are required for mod–16 counter?
Responda
  • 5
  • 6
  • 3
  • 4

Questão 103

Questão
The 2’s complement of the number 1101101 is
Responda
  • 0101110
  • 0111110
  • 0110010
  • 0010011

Questão 104

Questão
When simplified with Boolean Algebra (x + y)(x + z) simplifies to
Responda
  • x
  • x + x(y + z)
  • x(1 + yz)
  • x + yz

Questão 105

Questão
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
Responda
  • 15 ns
  • 30 ns
  • 45 ns
  • 60 ns

Questão 106

Questão
1’s complement representation of decimal number of -17 by using 8 bit representation is
Responda
  • 1110 1110
  • 1101 1101
  • 1100 1100
  • 0001 0001

Questão 107

Questão
Which command is used to extract specific columns from the file?
Responda
  • cat
  • cut
  • grep
  • find
  • None of the above

Questão 108

Questão
Grant and revoke are ....... statements.
Responda
  • DDL
  • TCL
  • DCL
  • DML

Questão 109

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

Questão 110

Questão
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
Responda
  • 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

Questão 111

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

Questão 112

Questão
If an object is rotated through an angle A in clockwise direction, the rotation matrix R= ...............
Responda
  • 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

Questão 113

Questão
Forming products of transformation matrices is often referred as
Responda
  • Concatenation
  • Composition
  • both a&b
  • None of above

Questão 114

Questão
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
Responda
  • 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

Questão 115

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

Questão 116

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

Questão 117

Questão
Which plan describes how the skills and experience of the project team members will be developed ?
Responda
  • HR Plan
  • Manager Plan
  • Team Plan
  • Staff Development Plan

Questão 118

Questão
Alpha and Beta Testing are forms of _______ .
Responda
  • Acceptance testing
  • Integration testing
  • System Testing
  • Unit testing

Questão 119

Questão
Which is the most important feature of spiral model?
Responda
  • Quality management
  • Risk management
  • Performance management
  • Efficiency management

Questão 120

Questão
Key to represent relationship between tables is called
Responda
  • primary key
  • secondary key
  • foreign key
  • none of the above

Questão 121

Questão
Which method executes only once
Responda
  • start() method
  • init() method
  • stop() method
  • destroy() method

Questão 122

Questão
__________ generate interrupt signal to microprocessor and receive acknowledge
Responda
  • priority resolver
  • control logic
  • interrupt request register
  • interrupt register

Questão 123

Questão
In 8086 the overflow flag is set when _____________.
Responda
  • 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

Questão 124

Questão
Address line for TRAP is?
Responda
  • 0023H
  • 0024H
  • 0033H
  • 0099H

Questão 125

Questão
The instruction, MOV AX, 1234H is an example of
Responda
  • register addressing mode
  • direct addressing mode
  • immediate addressing mode
  • based indexed addressing mode

Questão 126

Questão
In which order, Processor status word of 8085 microprocessor has five flags ?
Responda
  • S, Z, AC, P, CY
  • S, OV, AC, P, CY
  • S, Z, OV, P, CY
  • S, Z, AC, P, OV

Questão 127

Questão
In Java, Runnable is
Responda
  • Class
  • Method
  • Variable
  • Interface

Questão 128

Questão
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?
Responda
  • (I) only
  • (II) only
  • (II) & (III)
  • (I),(II) & (III)

Questão 129

Questão
colspan can be added to only what tag?
Responda
  • <table>
  • <tr>
  • <td>
  • All the above

Questão 130

Questão
Which class cannot be subclassed (or extended) in java?
Responda
  • abstract class
  • parent class
  • Final class
  • None of above

Questão 131

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

Questão 132

Questão
The main reason for using encryption on the Internet is:
Responda
  • 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

Questão 133

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

Questão 134

Questão
How can you open a link in a new browser window?
Responda
  • <a href="url" new>
  • <a href="url" target="new">
  • <a href="url" target="_blank">
  • <a href="url" target="_new">

Questão 135

Questão
What method is used to specify a container's layout in JSP?
Responda
  • setLayout()
  • setContainerLayout()
  • ContainerLayout()
  • setConLayout().

Questão 136

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

Questão 137

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

Questão 138

Questão
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?
Responda
  • 2 10
  • 1 10
  • 210
  • 110

Questão 139

Questão
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?
Responda
  • 0
  • 1
  • 2.083
  • 25%12

Questão 140

Questão
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?
Responda
  • green
  • blue
  • black
  • White.

Questão 141

Questão
Matlab stands for
Responda
  • Mathematics Lab
  • Matrix Laboratory
  • Mathematical Laboratory
  • None of the Above

Questão 142

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

Questão 143

Questão
Which of the following is not a pair tag?
Responda
  • <p>
  • <u>
  • <i>
  • <img>

Questão 144

Questão
CALANDER is coded in a code as CLANAEDR. Find the code for CIRCULAR under the same rule.
Responda
  • LACANDER
  • CRIUCALR
  • CLANADER
  • None of these

Questão 145

Questão
In one's complement representation 1111 1111 represents
Responda
  • +0
  • -0
  • +1
  • -1

Questão 146

Questão
Using Demorgan's theorem we can convert AND-OR circuit to
Responda
  • OR-AND
  • NOR-NOR
  • NAND-NAND
  • NAND-NOR

Questão 147

Questão
The number of interrupt lines in 8085 is
Responda
  • 2
  • 3
  • 4
  • 5

Questão 148

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

Questão 149

Questão
Which of the following propositions is tautology?
Responda
  • (p v q)→q
  • p v (q→p)
  • p v (p→q)
  • Both (b) & (c)

Questão 150

Questão
Which actions can be triggered by a button click in Android ? (check all that apply)
Responda
  • change appearance of other views of the same activity
  • start a different activity
  • change appearance of the button

Semelhante

BMSC335 Lecture 3 Week 1
Maddie McIntyre
Peptic Ulcer
Miar Abdelhamid
Immunology
El Prs
Insurance Quiz
crabbette
First Certificate - Use of English Parte 3
GoConqr suporte .
Vestibular - Obras Literárias
GoConqr suporte .
Direito Administrativo
GoConqr suporte .
7 Tendências Educacionais
GoConqr suporte .
Direito Tributário - Revisão
Maria José
Mapa Conceitual com GoConq
Alessandra S.