Programming and Data Structures-Programming in C (GATE Computer Science): Questions 107 - 111 of 134

Get 1 year subscription: Access detailed explanations (illustrated with images and videos) to 913 questions. Access all new questions we will add tracking exam-pattern and syllabus changes. View Sample Explanation or View Features.

Rs. 450.00 or

Question number: 107

» Programming and Data Structures » Programming in C

MCQ▾

Question

What will be output if you will compile and execute the following c code?

  1. void main()
  2. {
  3.     printf("%s",________DATE________);
  4. }

Choices

Choice (4) Response
a.

Current system date

b.

null

c.

Current system date with time

d. All of the above

Question number: 108

» Programming and Data Structures » Programming in C

MCQ▾

Question

Syntax-errors and logical-errors are collectively known as ________.

Choices

Choice (4) Response
a.

bugs

b.

faults

c.

slipups

d.

infections

Question number: 109

» Programming and Data Structures » Programming in C

MCQ▾

Question

Cookies are:

Choices

Choice (4) Response
a.

advertisements that pop up unannounced on a computer system.

b.

Destructive programs embedded in e-mail attachments or downloaded programs.

c.

programs that monitor the trail of Web sites visited by a consumer.

d.

Small files recording personal information about a consumer’s browsing habits.

Question number: 110

» Programming and Data Structures » Programming in C

MCQ▾

Question

If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

Choices

Choice (4) Response
a.

char pointer

b.

void pointer

c.

stack

d.

null pointer

Question number: 111

» Programming and Data Structures » Programming in C

MCQ▾

Question

What will be output if you will compile and execute the following c code?

  1. void start();
  2. void end();
  3. #pragma startup start #pragma exit end int static i;
  4. void main()
  5. {
  6.     printf("nmain function: %d",++i);
  7. }
  8. void start()
  9. {
  10.     clrscr();
  11.     printf("nstart function: %d",++i);
  12. }
  13. void end()
  14. {
  15.     printf("nend function: %d",++i);
  16.     getch();
  17. }

Choices

Choice (4) Response
a.

error

b.

main function: 2end function: 3start function: 1

c.

start function: 1main function: 2end function: 3

d.

main function: 2start function: 1end function: 3

Sign In