GATE Computer Science: Questions 156 - 161 of 913

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: 156

» Programming and Data Structures » Programming in C

MCQ▾

Question

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

  1. #include "string.hvoid main()
  2. {
  3.     clrscr();
  4.     printf("%d%d",sizeof("string"),strlen("string"));
  5.     getch();
  6. }

Choices

Choice (4) Response
a.

7, 7

b.

6, 8

c.

7, 6

d.

6, 7

Question number: 157

» Programming and Data Structures » Programming in C

MCQ▾

Question

Which of the following algorithm solves the all pair shortest path problem?

Choices

Choice (4) Response
a.

Warshall’s algorithm

b.

Floyd’s algorithm

c.

Dijkstra’s algorithm

d.

Prim’s algorithm

Question number: 158

» Operating System » CPU Scheduling

MCQ▾

Question

What is another component involved in the CPU-scheduling function?

Choices

Choice (4) Response
a.

Component

b.

Dispatcher

c.

Displacement

d. Question does not provide sufficient data or is vague

Question number: 159

» Databases » Database Design

MCQ▾

Question

Which of the following is a wrong type of insert statement?

Choices

Choice (4) Response
a.

INSERT INTO DEPT (deptno, dept_name, manager_id, loc_name) VALUES (10, ‘Accounting’, 10004, ‘Chicago’)

b.

INSERT INTO DEPT (deptno, dept_name, manager_id, loc_name) VALUES (10, Accounting, 10004, Chicago)

c.

INSERT INTO DEPT (deptno, dept_name, manager_id, loc_name) (10, Accounting, 10004, Chicago)

d. None of the above

Question number: 160

» Programming and Data Structures » Programming in C

MCQ▾

Question

Which standard library function will you use to find the last occurance of a character in a string in C?

Choices

Choice (4) Response
a.

strrchar

b.

strncha

c.

strnchar ()

d.

strrchar ()

Question number: 161

» Programming and Data Structures » Programming in C

MCQ▾

Question

Does there any function exist to convert the int or float to a string?

Choices

Choice (4) Response
a.

either yes or no

b.

no

c.

yes

d. None of the above

Sign In