Search Header Logo

SASI -1st year -DAY1-AN(27.11.23)

Authored by CCC info@ccc.training

English

Professional Development

Used 1+ times

SASI -1st year -DAY1-AN(27.11.23)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { signed char chr; chr = 128; printf("%d\n", chr); return 0; }

128
-128
Depends on the compiler
None of the mentioned

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is short int in C programming?

The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { float f1 = 0.1; if (f1 == 0.1) printf("equal\n"); else printf("not equal\n"); }

equal
not equal
output depends on the compiler
error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { int x = 10000; double y = 56; int *p = &x; double *q = &y; printf("p and q are %d and %d", sizeof(p), sizeof(q)); return 0; }

p and q are 4 and 4
p and q are 4 and 8
compiler error
p and q are 2 and 8

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> void main() { int x = 0; if (x = 0) printf("Its zero\n"); else printf("Its not zero\n"); }

Its not zero
Its zero
Run time error
None

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { int i = 1; if (i++ && (i == 1)) printf("Yes\n"); else printf("No\n"); }

Yes Depends on the standard
No
Depends on the compiler
Depends on the standard

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> void main() { int x = 0, y = 2, z = 3; int a = x & y | z; printf("%d", a); }

3
0
2
run time error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?