IT Trainer 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 2231
Q:

Wind and solar energy are examples of

A) Non renewable B) Renewable
C) Unsustainable D) Limited
 
Answer & Explanation Answer: B) Renewable

Explanation:

Many types of renewable energy resources such as wind and solar energy are constantly replenished and will never run out.

Report Error

View Answer Report Error Discuss

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

1 2225
Q:

The primary colors are-

A) Yellow, red, blue B) Green, white, black
C) Blue, green, yellow D) Red, blue, green
 
Answer & Explanation Answer: D) Red, blue, green

Explanation:

The Primary Colours are Blue, Red and Green. By mixing all these three primary colours we get White colour. 

The Secondary Colours are - Yellow, Magenta and Cyan.

Report Error

View Answer Report Error Discuss

12 2222
Q:

When should you stop at green and go at red?

Answer

While eating a watermelon, we all go along the red and stops at green.

Report Error

View answer Workspace Report Error Discuss

5 2220
Q:

Higher Quality Scores typically result in

A) faster delivery of daily budget B) higher costs and lower ad positions
C) lower costs and better ad positions D) less overall impressions
 
Answer & Explanation Answer: C) lower costs and better ad positions

Explanation:

Higher Quality Scores typically result in lower costs and better ad positions. Quality Score is Google's rating of the quality and relevance of both your keywords and PPC ads. It is used to determine your cost per click (CPC) and multiplied by your maximum bid to determine your ad rank in the ad auction process.

Report Error

View Answer Report Error Discuss

Filed Under: Advertising and Media
Job Role: Analyst , IT Trainer

0 2218
Q:

Which of the following data structure is linear type?

A) Tree B) Binary Tree
C) Queue D) Graph
 
Answer & Explanation Answer: C) Queue

Explanation:

A data structure is a specialized format for organizing and storing data. General data structure types include the array, the file, the record, the table, the tree, and so on. Any data structure is designed to organize data to suit a specific purpose so that it can be accessed and worked with in appropriate ways.

 

Linear data structure: A linear data structure traverses the data elements sequentially, in which only one data element can directly be reached.

Ex: Arrays, Linked Lists, Stack, Queue, Any type of List all are linear.

 

Trees like Binary Tree, B Tree or B+ Tree are examples of non linear data structure.

Report Error

View Answer Report Error Discuss

5 2215
Q:

Search engines that search other search engines are called

A) Megasearch engine B) Metasearch engine
C) Betasearch engine D) Gigasearch engine
 
Answer & Explanation Answer: A) Megasearch engine

Explanation:

A search engine is a information retrieval program that constantly collects information on the Web, following links in Web sites and reading Web pages. The search results are presented in a list format and are called as hits.

A metasearch engine is a search tool that uses another search engine's data to produce its own results from the Internet. These engines take input from a user and simultaneously send out queries to third party search engines for results. It searches other search engines rather than individual Web sites.

 

Examples of Metasearch engine includes - Dogpile, Zoo, Yabado, Metager, etc...

 

Search_engines_that_search_other_search_engines_are_called1561526716.png image

 

Report Error

View Answer Report Error Discuss

4 2212
Q:

Which of the following is a secondary storage device?

A) ALU B) Disc
C) Projector D) All of the above
 
Answer & Explanation Answer: B) Disc

Explanation:
Report Error

View Answer Report Error Discuss

3 2208