22
Q:

# main(){char s[ ] = "man";int i;for( i=0; s[ i ]; i++)printf( "n%c%c%c%c", s[ i ], *(s+i), *(i+s), i[s] );}

 A) mmmm aaaa nnnn B) aaaa mmmm nnnn C) nnnn aaaa mmmm D) None

Explanation:

s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea.Generally array name is the base address for that array. Here s is the base address. i is the index number/displacement from the base address. So, indirecting it with * is same as s[i]. i[s] may be surprising. But in the case of C it is same as s[i].

Subject: Programming
Q:

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

Explanation:

Filed Under: Programming
Exam Prep: Bank Exams

0 49
Q:

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

 A)

Explanation:

3 715
Q:

SNOBOL is mainly used for

 A) Text Operation B) String operations C) List operations D) Numerical 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.

6 1034
Q:

Macro flowchart is also called as

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

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.

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

8 4958
Q:

Which of the following is not a valid escape code?

 A) " B) \ C) ' 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.

26 11855
Q:

What is math.floor(3.6)?

 A) 6 B) 3 C) 3.5 D) 0.6

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.

2 2233
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

Explanation:

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

1 1358
Q:

How to Fix this error?

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: