SlideShare une entreprise Scribd logo
1  sur  3
Slide 1 of 3Ver. 1.0
Programming in C
In this session, you will do the practice questions of Chapter
7 and Chapter 8.
Practice Questions
Slide 2 of 3Ver. 1.0
Programming in C
Chapter 7
1. You are a part of a database software development team.
The software you are developing is to be used to create
and query on database files. You are assigned the task of
writing a C program, which displays the structure of any
database file, as given in the following file.
Microsoft Word
Document
Slide 3 of 3Ver. 1.0
Programming in C
Chapter 8
1. Read a file after the first 10 characters and print it on
screen. (Hint: Create a text file by the name of
Example.txt and write 2-3 lines of content in it.)
2. Write your name 10 character after the end of the file. Also,
use the exit() function to terminate the execution, if you
are unable to write or open the file.

Contenu connexe

En vedette

C programming session 10
C programming session 10C programming session 10
C programming session 10
Vivek Singh
 
C programming session 04
C programming session 04C programming session 04
C programming session 04
Vivek Singh
 
C programming session 05
C programming session 05C programming session 05
C programming session 05
Vivek Singh
 
C programming session 01
C programming session 01C programming session 01
C programming session 01
Vivek Singh
 
C programming session 02
C programming session 02C programming session 02
C programming session 02
Vivek Singh
 
Sql create table statement
Sql create table statementSql create table statement
Sql create table statement
Vivek Singh
 

En vedette (6)

C programming session 10
C programming session 10C programming session 10
C programming session 10
 
C programming session 04
C programming session 04C programming session 04
C programming session 04
 
C programming session 05
C programming session 05C programming session 05
C programming session 05
 
C programming session 01
C programming session 01C programming session 01
C programming session 01
 
C programming session 02
C programming session 02C programming session 02
C programming session 02
 
Sql create table statement
Sql create table statementSql create table statement
Sql create table statement
 

Similaire à C programming session 16

C programming session 16
C programming session 16C programming session 16
C programming session 16
AjayBahoriya
 
.Net framework
.Net framework.Net framework
.Net framework
Raghu nath
 
The Lab assignment will be graded out of 100 points.  There are .docx
The Lab assignment will be graded out of 100 points.  There are .docxThe Lab assignment will be graded out of 100 points.  There are .docx
The Lab assignment will be graded out of 100 points.  There are .docx
jmindy
 
The program reads data from two files, itemsList-0x.txt and .docx
The program reads data from two files, itemsList-0x.txt and .docxThe program reads data from two files, itemsList-0x.txt and .docx
The program reads data from two files, itemsList-0x.txt and .docx
oscars29
 
C programming session 11
C programming session 11C programming session 11
C programming session 11
Vivek Singh
 
Computer software application with specific reference to Microsoft word
Computer software application with specific reference to Microsoft wordComputer software application with specific reference to Microsoft word
Computer software application with specific reference to Microsoft word
Adesina Esther Tolulope
 
Computer software application with specific reference to Microsoft word
Computer software application with specific reference to Microsoft wordComputer software application with specific reference to Microsoft word
Computer software application with specific reference to Microsoft word
Onasanya2014
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .net
Felisha Hosein
 

Similaire à C programming session 16 (20)

C programming session 16
C programming session 16C programming session 16
C programming session 16
 
Programming in c_in_7_days
Programming in c_in_7_daysProgramming in c_in_7_days
Programming in c_in_7_days
 
Python reading and writing files
Python reading and writing filesPython reading and writing files
Python reading and writing files
 
.Net framework
.Net framework.Net framework
.Net framework
 
Bt0082 visual basic
Bt0082 visual basicBt0082 visual basic
Bt0082 visual basic
 
The Lab assignment will be graded out of 100 points.  There are .docx
The Lab assignment will be graded out of 100 points.  There are .docxThe Lab assignment will be graded out of 100 points.  There are .docx
The Lab assignment will be graded out of 100 points.  There are .docx
 
Microsoft Office
Microsoft OfficeMicrosoft Office
Microsoft Office
 
1.3 Process and Information Layout
1.3 Process and Information Layout1.3 Process and Information Layout
1.3 Process and Information Layout
 
Game Studio
Game StudioGame Studio
Game Studio
 
ICT.docx
 ICT.docx ICT.docx
ICT.docx
 
The program reads data from two files, itemsList-0x.txt and .docx
The program reads data from two files, itemsList-0x.txt and .docxThe program reads data from two files, itemsList-0x.txt and .docx
The program reads data from two files, itemsList-0x.txt and .docx
 
C programming session 11
C programming session 11C programming session 11
C programming session 11
 
C language industrial training report
C language industrial training reportC language industrial training report
C language industrial training report
 
Computer software application with specific reference to Microsoft word
Computer software application with specific reference to Microsoft wordComputer software application with specific reference to Microsoft word
Computer software application with specific reference to Microsoft word
 
Computer software application with specific reference to Microsoft word
Computer software application with specific reference to Microsoft wordComputer software application with specific reference to Microsoft word
Computer software application with specific reference to Microsoft word
 
01 intro to programming in .net
01   intro to programming in .net01   intro to programming in .net
01 intro to programming in .net
 
8. software selection
8. software selection8. software selection
8. software selection
 
Grade 11-Q1_W3-PECS_AQS.pdf
Grade 11-Q1_W3-PECS_AQS.pdfGrade 11-Q1_W3-PECS_AQS.pdf
Grade 11-Q1_W3-PECS_AQS.pdf
 
Lab 1 Essay
Lab 1 EssayLab 1 Essay
Lab 1 Essay
 
C in7-days
C in7-daysC in7-days
C in7-days
 

Plus de Vivek Singh

C programming session 14
C programming session 14C programming session 14
C programming session 14
Vivek Singh
 
C programming session 13
C programming session 13C programming session 13
C programming session 13
Vivek Singh
 
C programming session 08
C programming session 08C programming session 08
C programming session 08
Vivek Singh
 
C programming session 07
C programming session 07C programming session 07
C programming session 07
Vivek Singh
 
Niit aptitude question paper
Niit aptitude question paperNiit aptitude question paper
Niit aptitude question paper
Vivek Singh
 
Excel shortcut and tips
Excel shortcut and tipsExcel shortcut and tips
Excel shortcut and tips
Vivek Singh
 
Sql where clause
Sql where clauseSql where clause
Sql where clause
Vivek Singh
 
Sql update statement
Sql update statementSql update statement
Sql update statement
Vivek Singh
 
Sql tutorial, tutorials sql
Sql tutorial, tutorials sqlSql tutorial, tutorials sql
Sql tutorial, tutorials sql
Vivek Singh
 
Sql select statement
Sql select statementSql select statement
Sql select statement
Vivek Singh
 
Sql query tuning or query optimization
Sql query tuning or query optimizationSql query tuning or query optimization
Sql query tuning or query optimization
Vivek Singh
 
Sql query tips or query optimization
Sql query tips or query optimizationSql query tips or query optimization
Sql query tips or query optimization
Vivek Singh
 
Sql order by clause
Sql order by clauseSql order by clause
Sql order by clause
Vivek Singh
 
Sql operators comparision & logical operators
Sql operators   comparision & logical operatorsSql operators   comparision & logical operators
Sql operators comparision & logical operators
Vivek Singh
 
Sql logical operators
Sql logical operatorsSql logical operators
Sql logical operators
Vivek Singh
 
Sql integrity constraints
Sql integrity constraintsSql integrity constraints
Sql integrity constraints
Vivek Singh
 
Sql insert statement
Sql insert statementSql insert statement
Sql insert statement
Vivek Singh
 

Plus de Vivek Singh (20)

C programming session 14
C programming session 14C programming session 14
C programming session 14
 
C programming session 13
C programming session 13C programming session 13
C programming session 13
 
C programming session 08
C programming session 08C programming session 08
C programming session 08
 
C programming session 07
C programming session 07C programming session 07
C programming session 07
 
Niit aptitude question paper
Niit aptitude question paperNiit aptitude question paper
Niit aptitude question paper
 
Excel shortcut and tips
Excel shortcut and tipsExcel shortcut and tips
Excel shortcut and tips
 
Sql where clause
Sql where clauseSql where clause
Sql where clause
 
Sql update statement
Sql update statementSql update statement
Sql update statement
 
Sql tutorial, tutorials sql
Sql tutorial, tutorials sqlSql tutorial, tutorials sql
Sql tutorial, tutorials sql
 
Sql subquery
Sql subquerySql subquery
Sql subquery
 
Sql select statement
Sql select statementSql select statement
Sql select statement
 
Sql rename
Sql renameSql rename
Sql rename
 
Sql query tuning or query optimization
Sql query tuning or query optimizationSql query tuning or query optimization
Sql query tuning or query optimization
 
Sql query tips or query optimization
Sql query tips or query optimizationSql query tips or query optimization
Sql query tips or query optimization
 
Sql order by clause
Sql order by clauseSql order by clause
Sql order by clause
 
Sql operators comparision & logical operators
Sql operators   comparision & logical operatorsSql operators   comparision & logical operators
Sql operators comparision & logical operators
 
Sql logical operators
Sql logical operatorsSql logical operators
Sql logical operators
 
Sql joins
Sql joinsSql joins
Sql joins
 
Sql integrity constraints
Sql integrity constraintsSql integrity constraints
Sql integrity constraints
 
Sql insert statement
Sql insert statementSql insert statement
Sql insert statement
 

C programming session 16

  • 1. Slide 1 of 3Ver. 1.0 Programming in C In this session, you will do the practice questions of Chapter 7 and Chapter 8. Practice Questions
  • 2. Slide 2 of 3Ver. 1.0 Programming in C Chapter 7 1. You are a part of a database software development team. The software you are developing is to be used to create and query on database files. You are assigned the task of writing a C program, which displays the structure of any database file, as given in the following file. Microsoft Word Document
  • 3. Slide 3 of 3Ver. 1.0 Programming in C Chapter 8 1. Read a file after the first 10 characters and print it on screen. (Hint: Create a text file by the name of Example.txt and write 2-3 lines of content in it.) 2. Write your name 10 character after the end of the file. Also, use the exit() function to terminate the execution, if you are unable to write or open the file.

Notes de l'éditeur

  1. Begin the session by explaining the objectives of the session.