Escolar Documentos
Profissional Documentos
Cultura Documentos
1. Sales for a business were 6 million dollars more the second year than the first, and
sales for the third year were double the sales for the second year. If sales for the third
year were 76 million dollars, what were sales, in millions of dollars, for the first
year?
a) 38
b) 32
c) 26
d) None of the above
2. A car average 12 kilometers per liter.If gas cost $2.22 per liter,then how much gas
cost for this car to travel 1335 km?
a) 230$
b) 240$
c) 250$
d) 260$
3.
a) 80
b) 91
c) 79
d) 86
4. A person runs 600 meters in 5 minutes. what is his speed in km per hour?
a) 6.4
b) 8.4
c) 7.2
d) 5.1
5. The area of a circle is 64pi.what is the diameter of the circle?
a) 32
b) 16
c) 8
d) None of the above
6. From a pack of 52 cards, two cards are drawn together, what is the probability that
both the cards being queens?(assume that there are 4 queen cards)
a) A b) B c) C d) D
10. What are the missing numbers in the table?
2 3 5
5 7 12
11 13 24
? ? 36
a) 20,16
b) 17,19
c) 15,21
d) 1,35
11. What will be the value of the square?
20. When you want the system to execute a command, you almost never have to give full
path to that command. How can it be achieved?
a) PATH environment variable take care of this
b) The SYSTEM_ PATH environment variable take care of this
c) The commands which declared under /usr/bin don’t need to use full path
d) This is not correct,you do not have to specify the full path unless you are located
under the command directory
21. Which command wil you choose to copy all files and sun-directories?
a) cp
b) mv
c) cp-R
d) cp-A
22. What will happen when running the following command?
mkdir Dir A/Dir B/Dir C
a) All the directories will be created with the requsted hierarchy
b) Only the first directory Dir A will be created
c) mkdir will fail to create the directories
d) None of the above
23. How can you check the amount of lines in a file?
a) Lines-f file_ name
b) Cat file_name|grep file
c) Wc-l file_name
d) More file_name|grep file
24. What happens when you create a hard link to a text file,and then you delete a text
file?
a) The hard link will also be deleted
b) The hard link will exist although it will point to an emty file
c) The hard link will exist, and you will be able to read the content of the text file
d) The hard link will be undefined
25. In shell scripting,which of the following is used at the end of a line to indicate
continuation on to the next line?
a) #
b) \
c) \n
d) ;
26.
28.
29.
echo “$REPLY”
a) lukluk@gmail.com
b) Luk
c) luk@gmail.com
d) No output
e) The script will throw an error
SECTION-04 SQL
30.
a) SELECT customer_id_name
FROM customers
WHERE country_code IN(‘DE’,’AT’)
b) SELECT customer_id_name
FROM customers
WHERE country_code =’DE’
c) SELECT customer_id_name
FROM customers
WHERE country_code =’DE’
AND country_code=’AT’
d) SELECT customer_id_name
FROM customers
ANY country_code IN(‘DE’,’AT’)
31.
a) SELECT order_no
FROM orders
WHERE amount > 1000 AND amount < 5000
b) SELECT order_no
FROM orders
WHERE amount > =1000 OR amount < =5000
c) SELECT order_no
FROM orders
WHERE amount > 1000 OR amount < 5000
d) SELECT order_no
FROM orders
WHERE amount > =1000 AND amount < =5000
32.
a)
b)
c)
33. How will you return the number o records in “orders” table?
a) SELECT COUNT()FROM orders
b) SELECT SUM(*) FROM orders
c) SELECT COUNT(*) FROM orders
d) SELECT SIZE() FROM orders
34.
35. Which statement selects all orders, sorted down (from high to low) according to order
number?
a) Select * from orders sort by order_Number desc
b) Select * from orders order order_Number desc
c) Select * from orders order by order_Number desc
36.
Options:
37. How will you delete records where “Customer_Name” is “David” in orders table?
a) DELETE where customer_Name=’David’ from orders
b) DELETE * FROM orders where customer_Name=’David’
c) DELETE FROM orders where customer_Name=’David’
d) DELETE where customer_Name like ’David’ from orders
38.
39. Which of the following statements will only return different customer_name values
from table orders?
a) Select unique(Customer_Name)from Orders
b) Select distinct(Customer_Name)from Orders
c) Select diff(Customer_Name)from Orders
SECTION-05 C programs
40.
a) B
b) B
C
D
E
c) B
B
D
E
41.
a) -128
b) 0
c) 128
d) None of the above
42.
a) 15
b) Compiler error
c) Undefined
43.
a) 3
2
1
b) 3
2
3
c) 0
d) Undefined
e) 1
2
3
44.
a) Garbage value
5
200
-20
b) 5
Garbage value
200
-20
c) 5
7
200
-20
d) 5
20
200
-20
45.
return 0;
a) a=30,b=25
b) b=30,a=25
c) a=0,b=0
46.
a) 20
20
20
b) Compiler error
c) 20
40
40
d) 20
40
20
SECTION-06 C++ programs
47.
a) For(int i=3;i*i<=n;i+=2)
b) For(int i=3;i<n;i++)
c) For(int i=3;i*2<n;i++)
48.
49.
Options:
a) 0
b) 60
c) 90
d) 140
50.
a) hello world
b) world hello
c) dlrow olleh
d) hello worl
51.
Options:
a) Foo=start*2;
b) Foo=(start+end)/2;
c) Foo=(end-foo)/2;
d) Foo=(end+start)/2;
52.