Technical 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 5268
Q:

What is the difference between Hard and Soft real-time systems?

Answer

A hard real-time system guarantees that critical tasks complete on time. This goal requires that all delays in the system be bounded from the retrieval of the stored data to the time that it takes the operating system to finish any request made of it. A soft real time system where a critical real-time task gets priority over other tasks and retains that priority until it completes. As in hard real time systems kernel delays need to be bounded

Report Error

View answer Workspace Report Error Discuss

0 5267
Q:

Which of the following is not a common network topology?

A) Cluster B) Bus
C) Ring D) Star
 
Answer & Explanation Answer: A) Cluster

Explanation:

A network is nothing but 2 or more computers are grouped together to share information and resources and the that arrangement is called a topology.

which_of_the_following_is_not_a_common_network_topology1536650677.gif image

Cluster network topology is not a common type.

Report Error

View Answer Report Error Discuss

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

7 5253
Q:

 Legacy data is which of the following?

A) Data contained in a newly-installed system B) Data rejected during the installation of a new system
C) Data contained in a file system D) Data contained by a system used prior to the installation of a new system
 
Answer & Explanation Answer: D) Data contained by a system used prior to the installation of a new system

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

2 5185
Q:

Write a quick script for launching a new activity within your application.

Answer

An explicit intent explicitly defines the activity the developer wishes to start. 


Script code :


Intent myIntent = new Intent(this, MyNewActivity.class);


startActivity(myIntent);

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

16 5165
Q:

 A proxy server is used for which of the following?

A) To provide security against unauthorized users B) To process client requests for Web pages
C) To process client requests for database access D) To provide TCP/IP
 
Answer & Explanation Answer: A) To provide security against unauthorized users

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

5 5152
Q:

Frame relay is a packet switching technology operates in the data link layer

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Frame relay is a packet switching technology. It will operate in the data link layer.

Report Error

View Answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

3 5108
Q:

 To remove duplicate rows from the results of an SQL SELECT statement, the ________ qualifier specified must be included.

A) ONLY B) DISTINCT
C) UNIQUE D) SINGLE
 
Answer & Explanation Answer: B) DISTINCT

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

1 5098