Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

10 Result of a logical or relational expression in C is (a) Tue or False (b) 0 or 1 (c) a and b answers (d)

image text in transcribed
10 Result of a logical or relational expression in C is (a) Tue or False (b) 0 or 1 (c) a and b answers (d) none of the above 11 The format identifier '%d' is used for data type? (a) int (b) float (c) char (d) string 12 What will be the output when you will execute following c code? int a[5] = {5, 1, 15, 20, 25 ); int i, j, m; i = ++a[1]; = ++a[0]; m = a[i++]; printf("%d, %d %d", i, j, m); (a) 2, 6, 15 (c) 3, 6, 20 (b) 3,6,15 (d) none of the above 13 The value 132.54 can represented using which data type? (a) int (b) char (c) float (d) none strcat() is defined in which header file? (a) ctype.h (b) stdio.h (c) string.h (d) math.h 15 Which notation provides a strict upper bound for f(n)? (a) Omega notation (b) Big O notation (c) Small o notation (d) Theta Notation 16 Array name is a pointer (a) true (b) false 17 An array elements are always stored in memory locations. (a) randomly (b) consecutive (c) stack (d) none of the above 18 What is the output of this C code? char str[] = "hello, world "; printf("%d", strlen(str)); (a) compiler error (c) 12 (b) 13 (d) none of the above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

What is cost-plus pricing?

Answered: 1 week ago

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago

Question

Define policy making?

Answered: 1 week ago

Question

Define co-ordination?

Answered: 1 week ago