IT Trainer Questions


Q:

IP address is currently

A) 4 bytes long B) available in plenty
C) 6 bytes long D) not assigned as it is all used up
 
Answer & Explanation Answer: A) 4 bytes long

Explanation:

IP address is currently 4 bytes long. An IP address is written in "dotted decimal" notation, which is 4 sets of numbers separated by period each set representing 8-bit number ranging from (0-255).

Report Error

View Answer Report Error Discuss

1 5011
Q:

Can character data be stored in computer memory? 

A) Yes---a primitive data type is used to store characters B) No---computer memory can only store patterns
C) Yes---characters are stored in special memory D) No---computers can only store numbers
 
Answer & Explanation Answer: A) Yes---a primitive data type is used to store characters

Explanation:
Report Error

View Answer Report Error Discuss

7 4968
Q:

Tickets numbered 1 to 20 are mixed up and then a ticket is drawn at random. What is the probability that the ticket drawn has a number which is a multiple of 4 or 15 ?

A) 6/19 B) 3/10
C) 7/10 D) 6/17
 
Answer & Explanation Answer: B) 3/10

Explanation:

Here, S = {1, 2, 3, 4, ...., 19, 20}=> n(s) = 20
Let E = event of getting a multiple of 4 or 15
=multiples od 4 are {4, 8, 12, 16, 20}
And multiples of 15 means multiples of 3 and 5
= {3, 6 , 9, 12, 15, 18, 5, 10, 15, 20}.
= the common multiple is only (15).
=> E = n(E)= 6
Required Probability = P(E) = n(E)/n(S) = 6/20 = 3/10.

Report Error

View Answer Report Error Discuss

Filed Under: Probability
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

6 4959
Q:

Undefined reference to 'pthread_create'

How to Fix this error?

Answer

This is a common error while compiling C program in Linux. This error occurs when you are using pthread_create function to create threads in your programs.


To fix this problem ensure following points:
Include header file pthread.h in your program.
Add –lpthread linker flag with compilation command.
1- Include Header file
#include <stdio.h>
#include <pthread.h>
...
...
2- Compile command
gcc main.c -o main -lpthread

Report Error

View answer Workspace Report Error Discuss

24 4957
Q:

A sum is equally invested in two different schemes on CI at the rate of 15% and 20% for two years. If interest gained from the sum invested at 20% is Rs. 528.75 more than the sum invested at 15%, find the total sum?

A) Rs. 7000 B) Rs. 4500
C) Rs. 9000 D) Rs. 8200
 
Answer & Explanation Answer: C) Rs. 9000

Explanation:

Let Rs. K invested in each scheme

Two years C.I on 20% = 20 + 20 + 20x20/100 = 44%

Two years C.I on 15% = 15 + 15 + 15x15/100 = 32.25%

Now,

(P x 44/100) - (P x 32.25/100) = 528.75

=> 11.75 P = 52875

=> P = Rs. 4500

 

Hence, total invested money = P + P = 4500 + 4500 = Rs. 9000.

Report Error

View Answer Report Error Discuss

19 4937
Q:

Chennai express left Hyderabad for Chennai at 14 : 30 hours, travelling at a speed of 60 kmph and Charminar Express left Hyderabad for Chennai on the same day at 16 : 30 hours, travelling at a speed of 80 kmph. How far away from Hyderabad will the two trains meet? 

A) 360 kms B) 480 kms
C) 520 kms D) 240 kms
 
Answer & Explanation Answer: B) 480 kms

Explanation:

Now, the distance covered by Chennai express in 2 hrs = 60 x 2 = 120 kms

Let the Charminar Express takes 't' hrs to catch Chennai express

=> 80 x t = 60 x (2 + t)

=> 80 t = 120 + 60t

=> t = 6 hrs

 

Therefore, the distance away from Hyderabad the two trains meet = 80 x 6 = 480 kms.

Report Error

View Answer Report Error Discuss

10 4932
Q:

Reporting Discrepancies as incidents is a part of which phase?

A) Test Implementation and execution B) Evaluating exit criteria and reporting
C) Test Analysis and Design D) Test Closure Activities
 
Answer & Explanation Answer: A) Test Implementation and execution

Explanation:
Report Error

View Answer Report Error Discuss

7 4910
Q:

Which SQL keyword is used to sort the result-set?

A) ORDER B) ORDER BY
C) SORT BY D) SORT
 
Answer & Explanation Answer: B) ORDER BY

Explanation:

SQL keyword ORDER BY is used to sort the result-set.

Report Error

View Answer Report Error Discuss

Filed Under: SQL
Job Role: Analyst , Database Administration , IT Trainer

1 4900