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

The term fourth estate is used in reference to

A) The executive B) Parliament
C) Judiciary D) The Press and newspaper
 
Answer & Explanation Answer: D) The Press and newspaper

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2244
Q:

What molecule makes the trunk of a tree sturdy?

A) Disaccharide B) Fructose
C) Cellulose D) Glucose
 
Answer & Explanation Answer: C) Cellulose

Explanation:

Cellulose is closely related to sugar and rated as a carbohydrate, which means that it is a compound of carbon, hydrogen and oxygen. The woody trunk of a tree is no more than dead cell walls.

tree1533617490.jpg image

Trunk of a tree refers to the main wooden axis of a tree that supports the branches and is supported by and directly attached to the roots. The molecule that makes it sturdy is cellulose.

Report Error

View Answer Report Error Discuss

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

5 2244
Q:

A manometer is used to measure

A) earthquake B) pressure
C) temperature D) density
 
Answer & Explanation Answer: B) pressure

Explanation:

A manometer is used to measure a pressure difference between two points.

a_manometer_is_used_to_measure1553165853.png image

Report Error

View Answer Report Error Discuss

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

7 2244
Q:

What is the highest number of satellites that have been launched by the ISRO in 2017 on a single rocket ?

A) 22 B) 37
C) 83 D) 104
 
Answer & Explanation Answer: D) 104

Explanation:

India’s space agency on Feb 15th, 2017 launched a record 104 satellites from a single rocket as it crossed another milestone in its low-cost space-exploration program. The satellites from seven countries were carried by the Indian Space Research Organization’s Polar Satellite Launch Vehicle on its 38th consecutive successful flight. On board was a 714kg satellite for earth observation and more than 100 smaller satellites weighing less than 10kg each. Three were Indian-owned, 96 were from US companies, and the rest belonged to companies based in Israel, Kazakhstan, the Netherlands, Switzerland and the United Arab Emirates. Most were owned by Planet Labs Inc, a US-based Earth-imaging company. 

Report Error

View Answer Report Error Discuss

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

3 2243
Q:

In which world cup cricket final, Australia beat England?

A) 1987, Kolkata - India B) 1996, Lahore - Pakistan
C) 1983, Lord's - England D) 1992, Melbourne - Australia
 
Answer & Explanation Answer: A) 1987, Kolkata - India

Explanation:

Australia won the 1987/88 Reliance World Cup against England held in Kolkata, India.

Report Error

View Answer Report Error Discuss

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

4 2243
Q:

which of the following represents a set of properties that guarantee that database transactions are processed reliably in computer science ?

A) Buffer Cache B) ACID
C) Foreign Key D) None
 
Answer & Explanation Answer: B) ACID

Explanation:

ACID means (Atomicity, Consistency, Isolation, Durability) is a set of properties of database transactions intended to guarantee validity even in the event of errors, power failures, etc.

In the context of databases, a sequence of database operations that satisfies the ACID properties and, thus, can be perceived as single logical operation on the data, is called a transaction. For example, a transfer of funds from one bank account to another, even involving multiple changes such as debiting one account and crediting another, is a single transaction.

Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification
Job Role: Analyst , IT Trainer

5 2241
Q:

Which statement correctly changes the next extent size?

A) ALTER TABLE customer MODIFY NEXT SIZE 300 B) ALTER TABLE customer MODIFY NEXT EXTENT SIZE 300
C) ALTER TABLE customer MODIFY EXTENT SIZE 300 D) ALTER TABLE customer NEXT SIZE 300
 
Answer & Explanation Answer: A) ALTER TABLE customer MODIFY NEXT SIZE 300

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification

2 2240