C Programming (Pre test ET Sec B)

C Programming (Pre test ET Sec B)

Professional Development

25 Qs

quiz-placeholder

Similar activities

NV TVTS (Khoá dài) - Lesson 3 (Nhận dạng KH mục tiêu)

NV TVTS (Khoá dài) - Lesson 3 (Nhận dạng KH mục tiêu)

Professional Development

20 Qs

Reviewer Lesson No. 6 Hydromechanical Control 11-07 LC

Reviewer Lesson No. 6 Hydromechanical Control 11-07 LC

Professional Development

20 Qs

FC4 U1 CD

FC4 U1 CD

Professional Development

20 Qs

Holiday Movie Trivia

Holiday Movie Trivia

Professional Development

20 Qs

NS2: Maritime History: American Revolution

NS2: Maritime History: American Revolution

Professional Development

21 Qs

domestic fitments

domestic fitments

Professional Development

30 Qs

Reviewer Lesson No. 10 BALANCING AND RIGING 11-07 LC

Reviewer Lesson No. 10 BALANCING AND RIGING 11-07 LC

Professional Development

20 Qs

EXPANDED CAREER PROGRESSION (ECP) PRE-TEST

EXPANDED CAREER PROGRESSION (ECP) PRE-TEST

Professional Development

20 Qs

C Programming (Pre test ET Sec B)

C Programming (Pre test ET Sec B)

Assessment

Quiz

others

Professional Development

Practice Problem

Hard

Created by

Rashmi Joshi

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Q 1.What is the output of the following code snippet? #include main() { int const a = 5; a++; printf(“%d”,a); }

5
6
Runtime error
Compile error

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Q 2 - What is the output of the following code snippet? #include main() { const int a = 5; a++; printf("%d", a); }

5
6
Runtime error
Compile error

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Q 3 - What is the output of the below code snippet? #include main() { int a = 5, b = 3, c = 4; printf("a = %d, b = %d\n", a, b, c); }

a=5, b=3
a=5, b=3, c=0
a=5, b=3, 0
compile error

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Q 4 - Function fopen() with the mode "r+" tries to open the file for __

reading and writing
reading and adding new content
only for reading
it works only for directories

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Q 5 - What is the output of the following program? #include main() { int a[] = {2,1}; printf("%d", *a); }

0
1
2
Compile error.

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Q 6 - What is the output of the following program? #include main() { int a[3] = {2,,1}; printf("%d", a[a[0]]); }

0
1
2
Compile error

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Q 7 - What is the following program doing? #include main() { FILE *stream=fopen("a.txt",'r'); }

Trying to open “a.txt” in read mode
Trying to open “a.txt” in write mode.
“stream” is an invalid identifier
Compile error

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?