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

0 2039
Q:

Oligopolistic industries are characterized by

A) a few dominant firms and no barriers to entry B) a large number of firms and low entry barriers
C) a few dominant firms and substantial entry barriers D) a few dominant firms and low entry barriers
 
Answer & Explanation Answer: C) a few dominant firms and substantial entry barriers

Explanation:

Oligopoly is market structure where a small number of large firms are there. Oligopolistic industries are characterized by a few dominant firms and substantial entry barriers.

Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

6 2039
Q:

On 11 October, 2017 the Supreme Court criminalized sex with underage wife aged below______ years.

 

A) 15 B) 18
C) 21 D) No option is correct
 
Answer & Explanation Answer: B) 18

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams

0 2038
Q:

Which is the strongest force in the universe?

Answer

Nuclear Force

Report Error

View answer Workspace Report Error Discuss

Subject: Physics

6 2037
Q:

Who has been appointed as Managing Director of Export-Import Bank of India (Exim Bank) ?

A) Arun Tiwari B) Sunil Mehta
C) Ashwani Kumar D) David Rasquinha
 
Answer & Explanation Answer: D) David Rasquinha

Explanation:
Report Error

View Answer Report Error Discuss

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

4 2037
Q:

Namrup, which was recently making news for its Urea Plant, is located in which state?

 

A) Assam B) Chhattisgarh
C) Bihar D) Uttarakhand
 
Answer & Explanation Answer: A) Assam

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

1 2037
Q:

What help ensure that the XIV Systems cache does not become a bottleneck?

A) central cache locking mechanism B) use of industry standard chip technology
C) each module is responsible for caching the data in that module D) having all modules understand what is held cache at all times
 
Answer & Explanation Answer: C) each module is responsible for caching the data in that module

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification

1 2037
Q:

The persistence of learning over time most clearly depends on

A) memory B) visual encoding
C) chunking D) shallow processing
 
Answer & Explanation Answer: A) memory

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2036