• Home
  • Interview Questions
  • Online Quiz Tests
  • Blog
  • Contact Us

Global Guideline - Interviewer and Interviewee Guide.

Links
  • Home
  • Interview Questions
  • Online Quiz Tests
  • Blog
  • Contact Us
  1. Interviews
  2. Operating System Linux
  3. Linux Debugging

Debugging Question:

For debugging with GDB, the file "google" can be created with the command:
a) gcc -g -o google google.c
b) gcc -g google.c
c) gdb google
d) none of the mentioned

Linux Debugging Interview Question
Linux Debugging Interview Question

Answer:

a) gcc -g -o google google.c


Previous QuestionNext Question
What is the output of this program no 8?
#include<stdio.h>
#include<pthread.h>

void *fun_t(void *arg);
void *fun_t(void *arg)
{
sleep(1);
}
int main()
{
pthread_t pt;
void *res_t;
if(pthread_create(&pt,NULL,fun_t,NULL) != 0)
perror("pthread_create");
if(pthread_join(pt,&res_t) != 0)
perror("pthread_join");
printf("%sn",res_t);
return 0;
}
a) this process will pause
b) segmentation fault
c) run time error
d) none of the mentioned
For debugging with GDB, the compiled program can be run by the command
a) run
b) execute
c) ./
d) none of the mentioned

Interview Categories:

    • Awk Programming
    • Linux Administrator
    • Linux Bash Arithmetic Expressions
    • Linux Commands
    • Linux Debugging
    • Linux Device Drivers
    • Linux Editors
    • Linux Environment
    • Linux GCC Compiler
    • Linux General
    • Linux IPC
    • Linux Operating System Management
    • Linux OS
    • Linux OS Systems
    • Linux Shell
    • Linux Shutdown and Startup
    • Linux Signal Handling
    • Linux Socket Programming
    • Linux Sysfs
    • Linux System Calls
    • Linux Threads
    • Makefile
    • Proc Filesystem
    • Search Pattern
    • Static and Shared Libraries

Most Popular Quiz Categories:

Java AWT And SwingHTMLSQLOOAD (Object Oriented Analysis and Design)SAT (Scholastic Aptitude Test) Sentence CorrectionBiology Aptitude TestStatistics Aptitude TestNetworkingChemistry Aptitude TestManagement

Most Popular Interviews

  • Business and Economy
  • Networking
  • Computer Programming
  • Operating System
  • Computer Hardware

Most Popular Quizzes

  • Information Technology
  • Networking
  • Engineering
  • Accounting
  • Java

Keep in touch with us

 

Copyright © 2007 - 2025 globalguideline.com

all rights reserved.
  • About Us
  • Contact Us
  • Blog
  • Terms of use
  • Privacy Policy