26
Q:

main()

{

char *p; p = "Hello";

printf ("%cn", *&*p);

}

A) H B) Hello
C) Compilation error D) H E L L O

Answer:   A) H



Explanation:

* is a dereference operator & is a reference operator. They can be applied any number of times provided it is meaningful. Here p points to the first character in the string "Hello". *p dereferences it and so its value is H. Again & references it to an address and * dereferences it to the value H

Subject: Programming
Job Role: Software Architect
Q:

All variables in PHP start with which symbol?

A) % B) !
C) $ D) &
 
Answer & Explanation Answer: C) $

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming
Exam Prep: Bank Exams

4 1728
Q:

In HTML, ___________ tag is used to construct drop-down list boxes and scrolling list boxes.

A) <SELECT> B) <OPTION>
C) <TEXTAREA> D) <INPUT>
 
Answer & Explanation Answer: A) <SELECT>

Explanation:
Report Error

View Answer Report Error Discuss

9 1865
Q:

SNOBOL is mainly used for

A) Text Operation B) String operations
C) List operations D) Numerical operations
 
Answer & Explanation Answer: B) String operations

Explanation:

SNOBOL is a high-level computer programming language used especially in manipulating textual data. It is mainly used for string operations and was developed between 1962 and 1967.

Report Error

View Answer Report Error Discuss

11 2269
Q:

Macro flowchart is also called as

A) Less Detail flowchart B) More detail flowchart
C) Simple detailed flowchart D) None of the above
 
Answer & Explanation Answer: A) Less Detail flowchart

Explanation:

A flowchart is a type of diagram that represents a workflow or process. A flowchart can also be defined as a diagrammatic representation of an algorithm, a step-by-step approach to solving a task.

Macro flowchart shows the outlines the main segments of program. Macro flowchart is also called as less detail flowchart.

Report Error

View Answer Report Error Discuss

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

13 10111
Q:

Which of the following is not a valid escape code?

A) " B) \
C) ' D) =
 
Answer & Explanation Answer: D) =

Explanation:

The valid escape codes in programming languages are ', ", \, n, or t are the valid escape codes. 

 

For example, the sequence \n usually represents a newline, while the escape sequence \\ represents a backslash, \t usually represents a newtab.

Report Error

View Answer Report Error Discuss

42 23552
Q:

What is math.floor(3.6)?

A) 6 B) 3
C) 3.5 D) 0.6
 
Answer & Explanation Answer: B) 3

Explanation:

The Math.floor() function in JavaScript is used to round off the number passed as parameter to its nearest integer in Downward direction of rounding i.g towards the lesser value.

 

Hence, math.floor(3.6) = 3.

Report Error

View Answer Report Error Discuss

5 7920
Q:

Two main measures for the efficiency of an algorithm are

A) Time and Space B) Complexity and Memory
C) Data and Space D) Memory and Processor
 
Answer & Explanation Answer: A) Time and Space

Explanation:

Two main measures for the efficiency of an algorithm are Time and Space.

Report Error

View Answer Report Error Discuss

1 2657
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 2330