Questions

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 8896
Q:

What symbol is used to enter number as text?

A) = B) "
C) ' D) _
 
Answer & Explanation Answer: C) '

Explanation:

Apostrophe(‘) symbol is used before a number to make it a text or label.

Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

26 8892
Q:

Which Country has opened its fifth Nuclear Power Plant to meet its growing energy demands  ?

A) India B) Pakistan
C) Russia D) China
 
Answer & Explanation Answer: B) Pakistan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

55 8892
Q:

India Home Rule Society, founded in Landon in February 1905, was one of the earliest revolutionary societies set up outside india. This society was founded by

A) Lala Har Dayal B) VD Savarkar
C) Shyamji Krishna Verma D) Madan Lal Dhingra
 
Answer & Explanation Answer: C) Shyamji Krishna Verma

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

7 8891
Q:

Where should a boat compass be mounted?

A) near magnet B) near iron
C) away from electrical wiring D) All the above
 
Answer & Explanation Answer: C) away from electrical wiring

Explanation:

A compass, which is used to assist in navigation, is an instrument that shows magnetic north. You must apply a correction to determine the direction of true north. The ability to steer a boat by a compass is useful if land is out of sight, visibility is reduced, or the boat operator is disoriented.

 

Mount a boat compass away from iron, magnets, and electrical wiring and equipment.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

15 8890
Q:

Find the missing number in place of ?

Answer

The missing number in the given number puzzle is "78".


Here the logic is the numbers are from 86 - 91 when we read upside down.

Report Error

View answer Workspace Report Error Discuss

Subject: Number Puzzles Exam Prep: Bank Exams
Job Role: Bank Clerk , Bank PO

35 8879
Q:

Have you ever been in a situation where significant change was made to your team, department or organisation? How did you adjust?

Answer

The purpose of this question is to check your adaptability and flexibility. Did you feel victimized?


Answer this question by mentioning the change that was made but the main focus should be on how you adjusted in that situation and the results you achieved afterwards.


For example you can say something like, “Being an early joiner in the marketing team, I opened a lot of new customer accounts. Over the time the team grew and we had more people in the team opening more accounts. At one point of time, we had to re-distribute the accounts area wise so that a particular territory can be allotted to each one of us. This re-distribution meant loss of my high performing accounts and a requirement to develop new accounts in the assigned territory. Initially, it looked difficult but I could understand the need for this re-distribution and saw more opportunities for the company and myself. I introduced my colleagues to the old accounts I held and started strategizing for better ways to tap the new territory. Within 6 months, I could develop 50 new accounts with the help of new strategy. Usually we would achieve this result in 9 months to a year.”

Report Error

View answer Workspace Report Error Discuss

Subject: Human Resources

7 8875
Q:

All variables in PHP start with which symbol?

A) % B) !
C) $ D) &
 
Answer & Explanation Answer: C) $

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming
Exam Prep: Bank Exams

38 8873